Checks if a value is a PromiseLike object.
value
Returns true if the value is a PromiseLike object
true
const value = new Promise(() => {});const result = isPromiseLike(value);console.log(result); // true
true if value is a PromiseLike object, otherwise false
false
the PromisLike value type
the value to check
Generated using TypeDoc
Checks if a
valueis a PromiseLike object.Example
Returns
trueif the value is a PromiseLike objectReturns
trueifvalueis a PromiseLike object, otherwisefalse