MCPcopy Create free account
hub / github.com/Effect-TS/effect / liftNullishOr

Function liftNullishOr

packages/effect/src/Array.ts:4099–4102  ·  view source on GitHub ↗
(
  f: (...a: A) => B
)

Source from the content-addressed store, hash-verified

4097 * @since 4.0.0
4098 */
4099export const liftNullishOr = <A extends Array<unknown>, B>(
4100 f: (...a: A) => B
4101): (...a: A) => Array<NonNullable<B>> =>
4102(...a) => fromNullishOr(f(...a))
4103
4104/**
4105 * Maps each element with a nullable-returning function, keeping only non-null /

Callers

nothing calls this directly

Calls 2

fromNullishOrFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected