Created
August 23, 2016 14:09
-
-
Save fabiodamasceno/ac726992cddbdd0ae4c58e3eccaed2dc 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
//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