@lou.codes/predicates
Version:
🧐 Predicate util functions
15 lines (14 loc) • 357 B
JavaScript
import { isType } from "./isType.js";
/**
* `typeof` "undefined" alias.
*
* @category Primitives
* @example
* ```typescript
* isUndefined(undefined); // true
* isUndefined(null); // false
* ```
* @param input Value to check.
* @returns Returns `true` if value is `undefined`, `false` otherwise.
*/
export const isUndefined = isType("undefined");