Promise extensions
import { extend } from 'jsmodern';
import {
delayed,
isPromise,
} from 'jsmodern/dist/promise.js';
extend({
promise: [
delayed,
isPromise,
],
});
console.log([
Promise.delayed,
Promise.isPromise,
].every(n => 'function' === typeof(n)));
Check out API Reference.
MIT License © Rong Sen Ng