Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

isEmpty

  • isEmpty(value: any, includeZero?: boolean): boolean
  • Returns true if the given value counts as empty Empty values are: NULL, undefined, 0, "", " ", {}, [] and empty Maps and Sets

    Parameters

    • value: any
    • Optional includeZero: boolean

      By default zero (0) is not seen as "empty" if you set this to true, it will be, tho

    Returns boolean

Generated using TypeDoc