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