MCPcopy
hub / github.com/udecode/plate / isUndefinedOrNull

Function isUndefinedOrNull

packages/udecode/utils/src/type-utils.ts:7–8  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

5
6/** @returns Whether the provided parameter is undefined or null. */
7export const isUndefinedOrNull = (obj: any): obj is null | undefined =>
8 isUndefined(obj) || isNull(obj);
9
10/** @returns Whether the provided parameter is defined. */
11export const isDefined = <T>(arg: T | null | undefined): arg is T =>

Callers 1

isDefinedFunction · 0.85

Calls 2

isUndefinedFunction · 0.85
isNullFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…