Metakit / @doeixd/metakit/build

matchArm

function · packages/metakit/src/ops/eval.ts:59

function matchArm(
  match: Node.Match,
  target: unknown,
):
  | {
      readonly arm: Node.Node
    }
  | {
      readonly value: null | Node.Refusal
    }

The branch of match that target takes: null where there is no fallback and the target is null, a refusal where the target is text holding a NUL or no case names it.