inspectUndefinable
-
Return input directly.
- This value is passed as the input. But it maybe mutated by calling effector.
-
Call effector with input if input is not
undefined
. -
This was added to sort with others or future enhancement to accept chaining functions. We recommend to use simple
if
statement or similar way and they would be more efficient.
function inspectUndefinable<T>(input: Undefinable<T>, effector: EffectFn<NotUndefined<T>>): Undefinable<T>;