Skip to content

Instantly share code, notes, and snippets.

@fabiodamasceno
Created August 23, 2016 14:09
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/ac726992cddbdd0ae4c58e3eccaed2dc to your computer and use it in GitHub Desktop.
Save fabiodamasceno/ac726992cddbdd0ae4c58e3eccaed2dc to your computer and use it in GitHub Desktop.
//doSomething.js > es6
import Promise from 'bluebird'
export default (a, b) => {
let 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