Options
All
  • Public
  • Public/Protected
  • All
Menu

Module is/nil

Index

References

Functions

References

Renames and re-exports isNil

Functions

  • isNil(test: any): test is void
  • Checks if test is nil (null or undefined).

    example

    isNil(undefined); //=> true isNil(null); //=> true isNil(''); //=> false isNil(5); //=> false

    Parameters

    • test: any

      The value to check.

    Returns test is void

    Returns true if test is nil, else false.

Generated using TypeDoc