UNPKG

@flex-development/tutils

Version:
19 lines (15 loc) 381 B
/** * @file Type Guards - isNIL * @module tutils/guards/isNIL */ import type { NIL } from '#src/types' /** * Checks if `value` is a {@link NIL}. * * @param {any} [value] - Value to check * @return {boolean} `true` if `value` is `null` or `undefined` */ const isNIL = (value?: any): value is NIL => { return value === null || value === undefined } export default isNIL