Files: e9d9dec1d00ff365112ca0f981bbda15e3682528 / test / test-79-npm / any-promise / any-promise.js
184 bytesRaw
1 | ; |
2 | |
3 | var Promise = require('any-promise'); |
4 | |
5 | function p () { |
6 | return new Promise((resolve) => { |
7 | resolve('ok'); |
8 | }); |
9 | } |
10 | |
11 | p().then((result) => { |
12 | console.log(result); |
13 | }); |
14 |
Built with git-ssb-web