Skip to content
Browse files

(condition)

  • Loading branch information...
1 parent 580f6f0 commit bb09f14c5462df20ea7de9bc8dd3554a0988c4bc @douglascrockford committed Jan 28, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 monad.js
View
6 monad.js
@@ -1,6 +1,6 @@
// monad.js
// Douglas Crockford
-// 2015-05-02
+// 2016-01-27
// Public Domain
@@ -109,8 +109,8 @@ function MONAD(modifier) {
prototype[name] = function () {
var result = this.bind(func, arguments);
- return result && result.is_monad === true
- ? result
+ return (result && result.is_monad === true)
+ ? result
: unit(result);
};
return unit;

0 comments on commit bb09f14

Please sign in to comment.
Something went wrong with that request. Please try again.