Type guard check if the given value is not undefined.
The type of the value
The value to check
True if the value is not undefined, otherwise false
const data = ['demo', undefined, 'demo'];const output: string[] = data.filter(isNotUndef); Copy
const data = ['demo', undefined, 'demo'];const output: string[] = data.filter(isNotUndef);
v0.4.0
Type guard check if the given value is not undefined.