Skip to main content

isUndefined

Validates if the supplied input is undefined.

Signature​

isUndefined(input: any): boolean

Parameters​

NameTypeOptionalDescription
inputanyNoInput to validate.

Return value​

Returns true if the input is undefined.

Example​

import { isUndefined } from "@tripetto/runner";

isUndefined(1); // Returns `false`
isUndefined(); // Returns `true`