Function isEmpty

  • Checks if a value is empty.

    Arrays and strings are considered empty if they have a length of 0. Map and Sets are considered empty if they have a size of 0.

    This function does not check for empty objects. Any other value is considered empty only if it is nullish.

    Parameters

    • Optionalvalue: unknown

    Returns boolean