isPromise

function isPromise(val): val is Promise<unknown>

Parameters

ParameterType
valunknown

Returns

val is Promise<unknown>