If it's a Promise
it returns a union of its resolved value and itself.
Otherwise it returns a union of itself and a Promise
of itself.
Returns Promise<T>
if U
is truthy, otherwise returns T
.
U
can be a Promise
, or a boolean
if B
is true
.
Returns a boolean
of whether T
is a Promise
or not.
Persists T
if it's true
, otherwise returns U
.
Generated using TypeDoc
Checks if
T
extendsnever
, iftrue
it returnsU
, otherwise it returnsV
.