isDefined
Identifies if a value is defined.
Type Definitions
ts
/**
* @param val - The value.
* @returns If the value is defined.
*/
export declare function isDefined<T = unknown>(val?: T): val is T
1
2
3
4
5
2
3
4
5