Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isFalsy

  • isFalsy(val: unknown): boolean
  • Checks if the given value is falsy.

    example

    isFalsy(0); // true isFalsy(null); // true isFalsy(undefined); // true isFalsy(NaN); // true isFalsy(false); // true isFalsy(true); // false isFalsy('a string'); // false isFalsy(1); // false

    Parameters

    • val: unknown

      The object to check.

    Returns boolean

    Whether the value is falsy.

Legend

  • Function

Generated using TypeDoc