xdash / isPromise
Function: isPromise()
isPromise(
value
):value is Promise<unknown>
Determines if a value is a promise.
Parameters
• value: unknown
value to check
Returns
value is Promise<unknown>
true if the value is a promise, false otherwise