Last active
August 23, 2016 14:13
-
-
Save fabiodamasceno/b2cea046d009774d775b05ef80a92d72 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//doSomething.js | |
var Promise = require(‘bluebird’) | |
module.exports = function(a, b){ | |
var p = new Promise() | |
if(a > b) | |
p.reject() | |
p.resolve() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment