Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 298 Bytes
/**
* Check if given value is null.
*
* @param value - Value to check.
* @returns True if is a null, false if not.
*/
export const isNull = <ValueType = unknown>(
value: ValueType | null
// eslint-disable-next-line no-null/no-null
): value is null => value === null;
export default isNull;
You can’t perform that action at this time.