@jswork/next-is-promise
v1.0.0
Published
Test whether an object looks like a promises-a+ promise.
Downloads
5
Readme
next-is-promise
Test whether an object looks like a promises-a+ promise.
installation
npm install -S @jswork/next-is-promise
usage
import '@jswork/next-is-promise';
const fn1 = () => {
return new Promise(() => {
setTimeout(() => {
resolve('done');
}, 1000);
});
};
nx.isPromise(fn1()); // true
license
Code released under the MIT license.