Skip to content
On this page

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