/** * A type that is either null or undefined. */ export type Nullish = null | undefined; /** * Returns `true` if the value is null or undefined. * @param value The value to check. * * @example * ```typescript * isNullish(null); // => true * isNullish(undefined); // => true * isNullish(''); // => false * isNullish(' '); // => false * isNullish('a'); // => false * isNullish(0); // => false * ``` * * @example * ```typescript * const foo: string | null = null; * if (isNullish(foo)) { * const bar = foo; // bar :: null * } * ``` */ declare const isNullish: (value: unknown) => value is Nullish; export default isNullish; //# sourceMappingURL=isNullish.d.ts.map