//#region src/is-nothing/index.d.ts /** * Determines if the given value is undefined or null. * * @param val - The value to check whether or not it is null or undefined. * @returns True if the value is null or undefined, false otherwise. * * @example * ```typescript * import { isNothing } from '@accelint/predicates/is-nothing'; * * if (isNothing(val)) { * // error path... * } * * isNothing(null); // true * isNothing(undefined); // true * isNothing(0); // false * isNothing(''); // false * isNothing(false); // false * ``` */ declare const isNothing: (val: unknown) => val is null | undefined; //#endregion export { isNothing }; //# sourceMappingURL=index.d.ts.map