Checks if a value is empty. Considers null, undefined, NaN, empty arrays ([]), and false as empty. Optionally ignores leading/trailing whitespace for strings.

  • Parameters

    • value: any

      The value to check.

    • options: IsEmptyOptions = {}

      Options for emptiness validation.

    Returns boolean

    true if the value is empty, false otherwise.