MCPcopy Create free account
hub / github.com/effect-app/libs / fromNullOr

Function fromNullOr

repos/effect/packages/effect/src/Option.ts:899–901  ·  view source on GitHub ↗
(
  a: A
)

Source from the content-addressed store, hash-verified

897 * **Example** (Unwrapping to null)
898 *
899 * ```ts import.meta.vitest
900 * import { Option } from "effect"
901 *
902 * Option.getOrNull(Option.some(1)) // => 1
903 * Option.getOrNull(Option.none()) // => null
904 * ```

Callers

nothing calls this directly

Calls 2

noneFunction · 0.70
someFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…