Checks if a value is empty. Considers null, undefined, NaN, empty arrays ([]), and false as empty. Optionally ignores leading/trailing whitespace for strings.
null
undefined
NaN
[]
false
The value to check.
Options for emptiness validation.
true if the value is empty, false otherwise.
true
Checks if a value is empty. Considers
null
,undefined
,NaN
, empty arrays ([]
), andfalse
as empty. Optionally ignores leading/trailing whitespace for strings.