Skip to content

Instantly share code, notes, and snippets.

@fabiodamasceno
Last active August 23, 2016 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiodamasceno/b2cea046d009774d775b05ef80a92d72 to your computer and use it in GitHub Desktop.
Save fabiodamasceno/b2cea046d009774d775b05ef80a92d72 to your computer and use it in GitHub Desktop.
//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