Skip to content

Commit a98c5f2

Browse files
committed
Merge pull request #3 from michaelficarra/patch-1
simplify implementation of nullable
2 parents f02a5f9 + 3b67a70 commit a98c5f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Nullable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
exports.$$null = null;
77

88
exports.nullable = function(a, r, f) {
9-
return a === null || typeof a === 'undefined' ? r : f(a);
9+
return a == null ? r : f(a);
1010
};
1111

1212
exports.notNull = function(x) {

0 commit comments

Comments
 (0)