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