Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ifdef"

Index

Functions

Functions

Const ifDef

  • ifDef<A, B>(f: Fn<A, B>, x: A | null | undefined): undefined | B
  • Returns f(x) iff x is not null or undefined.

    Type parameters

    • A

    • B

    Parameters

    • f: Fn<A, B>
    • x: A | null | undefined

    Returns undefined | B

Generated using TypeDoc