Skip to content

Commit f73bd1a

Browse files
committed
Code style
1 parent 300961d commit f73bd1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

JavaScript/maybe.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
function Maybe(x) {
24
this.x = x;
35
}
@@ -8,7 +10,7 @@ Maybe.prototype.map = function(fn) {
810
} else {
911
return new Maybe(null);
1012
}
11-
}
13+
};
1214

1315
new Maybe(5).map(x => x * 2).map(console.log);
1416
new Maybe(null).map(x => x * 2).map(console.log);

0 commit comments

Comments
 (0)