Skip to content

isUndef

isUndef(val, empty?): boolean

Defined in: core/utils/types.ts:11

Returns true if a value is null, undefined or false.

Note: despite the name, false also counts as “undefined”.

unknown

Value to test.

boolean

Also treat an empty string ('') as undefined.

boolean