isPromise function

Check if a value is a Promise.

Signature

isPromise(value: any): value is Promise<any>

Parameters

value

Value to check

Returns

true if the value is a Promise