Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 412 Bytes
import isNull from "../isNull/isNull";
import isUndefined from "../isUndefined";
* Check if given value is null or undefined.
* @param value - Value to check.
* @returns True if is a null or undefined, false if not.
export const isNullish = <ValueType = unknown>(
value: ValueType | null | undefined
): value is null | undefined => isUndefined(value) || isNull(value);
export default isNullish;
You can’t perform that action at this time.