isNull
Import from @varavel/vdl-plugin-sdk/utils/predicates.
Checks if the given value is null.
This function tests whether the provided value is strictly equal to null.
It returns true if the value is null, and false otherwise.
This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to null.
Parameters
| Parameter | Type | Description |
|---|---|---|
x |
unknown |
The value to test if it is null. |
Returns
x is null
True if the value is null, false otherwise.