mapForUndefinable
Return the result of transformer with using input as an argument for it if input is not undefined
,
Otherwise, return undefined
.
U
must not beUndefinable<*>
.- If you'd like return
Undefinable<*>
asU
, useandThen()
. - If the result of transformer is
undefined
, this throw anError
.
- If you'd like return
function mapForUndefinable<T, U>(input: Undefinable<T>, transformer: TransformFn<T, NotUndefined<U>>): Undefinable<U>;
§
mapForUndefinable<T, U>(input: Undefinable<T>, transformer: TransformFn<T, NotUndefined<U>>): Undefinable<U>
[src]