@epikodelabs/streamix / isPromiseLike
Function: isPromiseLike()
isPromiseLike(
value):value is Promise<unknown>
Defined in: projects/libraries/streamix/src/lib/abstractions/operator.ts:21
Type guard that checks whether a value behaves like a promise.
We avoid relying on instanceof Promise so that promise-like values from different realms or custom thenables are still treated correctly.
Parameters
value
unknown
Returns
value is Promise<unknown>