Skip to content

isNil

reference
1 min readUpdated

Kind: Function

Source: packages/common/utils/shared.utils.ts

Part of: Common

Signature

ts
function isNil(val: any): val is null | undefined

Parameters

NameType
valany

Returns: val is null | undefined

Used by

26 references from 26 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (26)

  • AdditionalHeaderspackages/core/router/sse-stream.ts:38
  • UNKNOWN_DEPENDENCIES_MESSAGEpackages/core/errors/messages.ts:63
  • callBeforeAppShutdownHookpackages/core/hooks/before-app-shutdown.hook.ts:49
  • callModuleBootstrapHookpackages/core/hooks/on-app-bootstrap.hook.ts:43
  • callAppShutdownHookpackages/core/hooks/on-app-shutdown.hook.ts:45
  • callModuleDestroyHookpackages/core/hooks/on-module-destroy.hook.ts:41
  • callModuleInitHookpackages/core/hooks/on-module-init.hook.ts:37
  • InjectorDependencypackages/core/injector/injector.ts:51

…and 18 more.

Was this page helpful?

Download as PDF
isNil — NestJS head-to-head