unwrapOrElseForUndefinable
Return input as T
if the passed input is not undefined
.
Otherwise, return the result of recoverer.
- The result of recoverer must not be
Undefinable<*>
.- If you try to recover the value, use
orElse()
- If you try to recover the value, use
- If the result of recoverer is
undefined
, throwTypeError
.
function unwrapOrElseForUndefinable<T>(input: Undefinable<T>, recoverer: RecoveryFn<NotUndefined<T>>): NotUndefined<T>;
§
unwrapOrElseForUndefinable<T>(input: Undefinable<T>, recoverer: RecoveryFn<NotUndefined<T>>): NotUndefined<T>
[src]