common-stuff
    Preparing search index...

    Function isEmpty

    • Checks if the value is empty.

      Supported types and what counts as empty:

      • null / undefined — empty
      • booleanfalse is empty
      • string'' is empty
      • number0 is empty (NaN is not)
      • Array — empty array
      • Set / Map.size === 0
      • Plain object — no own enumerable keys
      • Anything else — not empty

      Type Parameters

      • T

      Parameters

      • value: T

      Returns boolean