isUndefined
Validates if the supplied input is undefined.
Signature
isUndefined(input: any): boolean
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
input | any | No | Input to validate. |
Return value
Returns true if the input is undefined.
Example
import { isUndefined } from "@tripetto/builder";
isUndefined(1); // Returns `false`
isUndefined(); // Returns `true`