Checks if the value is empty.
Supported types and what counts as empty:
null
undefined
boolean
false
string
''
number
0
NaN
Array
Set
Map
.size === 0
Checks if the value is empty.
Supported types and what counts as empty:
null/undefined— emptyboolean—falseis emptystring—''is emptynumber—0is empty (NaNis not)Array— empty arraySet/Map—.size === 0