MCPcopy
hub / github.com/nestjs/nest / isNil

Function isNil

packages/common/utils/shared.utils.ts:48–49  ·  view source on GitHub ↗
(val: any)

Source from the content-addressed store, hash-verified

46export const isNumber = (val: any): val is number => typeof val === 'number';
47export const isConstructor = (val: any): boolean => val === 'constructor';
48export const isNil = (val: any): val is null | undefined =>
49 isUndefined(val) || val === null;
50export const isEmpty = (array: any): boolean => !(array && array.length > 0);
51export const isSymbol = (val: any): val is symbol => typeof val === 'symbol';

Callers 15

bindMessageHandlersMethod · 0.90
isCustomProviderMethod · 0.90
insertProviderMethod · 0.90
scanFromPrototypeMethod · 0.90
isCustomProviderMethod · 0.90
isFactoryMethod · 0.90
isNewableMethod · 0.90
resolvePropertiesMethod · 0.90
applyPropertiesMethod · 0.90

Calls 1

isUndefinedFunction · 0.85

Tested by

no test coverage detected