Function isEmpty

  • Determine if a value is empty.

    A value is considered empty if it is:

    • undefined
    • null
    • empty string "".

    Parameters

    • value: undefined | null | string

      value to check if it is empty

    Returns value is undefined | null | ""