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

Function isDefined

packages/udecode/utils/src/type-utils.ts:11–12  ·  view source on GitHub ↗
(arg: T | null | undefined)

Source from the content-addressed store, hash-verified

9
10/** @returns Whether the provided parameter is defined. */
11export const isDefined = <T>(arg: T | null | undefined): arg is T =>
12 !isUndefinedOrNull(arg);
13
14export function bindFirst<T, Args extends any[], R>(
15 fn: (first: T, ...args: Args) => R,

Callers 15

EditorStateEffectFunction · 0.90
EditorHotkeysEffectFunction · 0.90
HotkeyEffectFunction · 0.90
normalizeNodeFunction · 0.90
createSlatePluginFunction · 0.90
collectNodeIdsFunction · 0.90
normalizeInsertedNodeFunction · 0.90
pluginDeserializeHtmlFunction · 0.90
applyOverridesFunction · 0.90
pluginInjectNodePropsFunction · 0.90
createPrimitiveComponentFunction · 0.90
upsertLinkFunction · 0.85

Calls 1

isUndefinedOrNullFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…