Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const exists

  • exists(val: unknown): boolean
  • Checks if the given object is not null or undefined.

    example

    exists(123); // true exists(0); // true exists(undefined); // false exists(null); // false

    Parameters

    • val: unknown

      The value to check.

    Returns boolean

    Whether the value is not null or undefined.

Legend

  • Function

Generated using TypeDoc