isPromise
A function which determines whether the object is a Promise
.
Arguments
p
(Any): The object to determine whether it is a promise.
Returns
(Boolean): true
if the object is a Promise
else false
Example
Last updated
Was this helpful?