Returns true
if x
is a Promise
.
const a = Promise.resolve(1);
Promise.isPromise(a) === true;
Creates a Promise
that runs callback
after delay
.
Promise.delayed(3e3, () => {}); /** Runs callback after 3 seconds */
None
Returns true
if x
is a Promise
.
const a = Promise.resolve(1);
Promise.isPromise(a) === true;
Creates a Promise
that runs callback
after delay
.
Promise.delayed(3e3, () => {}); /** Runs callback after 3 seconds */
None