Check if a value is not null or undefined.
null
undefined
Acts as a TypeScript type guard, narrowing the type of value from T | null | undefined to NonNullable<T> if true.
value
T | null | undefined
NonNullable<T>
The value to check.
true if the value is neither null nor undefined.
true
Check if a value is not
nullorundefined.Acts as a TypeScript type guard, narrowing the type of
valuefromT | null | undefinedtoNonNullable<T>if true.