MCPcopy
hub / github.com/andremichelle/openDAW / isDefined

Function isDefined

packages/lib/std/src/lang.ts:79–79  ·  view source on GitHub ↗
(value: Maybe<T>)

Source from the content-addressed store, hash-verified

77export type AssertType<T> = (value: unknown) => value is T
78export const identity = <T>(value: T): T => value
79export const isDefined = <T>(value: Maybe<T>): value is T => value !== undefined && value !== null
80export const isNull = (value: unknown): value is null => value === null
81export const isNotNull = <T>(value: Nullable<T>): value is T => value !== null
82export const isUndefined = (value: unknown): value is undefined => value === undefined

Callers 15

findMethodTypeFunction · 0.90
LazyFunction · 0.90
nonEmptyFunction · 0.90
wrapFunction · 0.90
Class · 0.90
filterMapMethod · 0.90
createFunction · 0.90
parseCssRgbOrRgbaMethod · 0.90
yMethod · 0.90
computePrefixFunction · 0.90
clearMethod · 0.90
addMethod · 0.90

Calls

no outgoing calls

Tested by 1