Created
March 25, 2016 00:36
-
-
Save kellegous/f5f84a470230a3c3ee9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ife = require('if-else'); | |
var x = ife.shouldThisBeTrue(function(i) { | |
return i > 3; | |
}).then(function(i) { | |
return i*10; | |
}).otherwiseThis(function() { | |
return i*-10; | |
}).using(4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment