isAsync()function

isAsync(value: PromiseLike<T> | T): value is PromiseLike<T>
ParamType
valuePromiseLike<T>
T
The value to test. required
Return
value is PromiseLike<T>
true if value is a PromiseLike, narrowing its type.

Is a value an asynchronous value implementing a then() function.