collectype / utils/primitives/null / hasNull
hasNull<
T>(…args):boolean
Defined in: utils/primitives/null.ts:13
Returns true if any of the provided arguments is null. Useful for quickly checking the presence of null values in a list.
T = unknown
The argument type (inferred)
…T[]
List of values to check
boolean
True if at least one argument is null, false otherwise
hasNull(1, null, 3); // true
hasNull('a', 'b', 'c'); // false