Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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>;
§
inspectUndefinable<T>(input: Undefinable<T>, effector: EffectFn<NotUndefined<T>>): Undefinable<T>
[src]

§Type Parameters

§Parameters

§
effector: EffectFn<NotUndefined<T>>
[src]

§Return Type