Skips / filters values which contains null for the given property. Narrows the type of the given property within the object type from T | null to just T.
Example:
const x: Observable<{ a: number, b: string | null }>;const z: Observable<{ a: number, b: string }> = x.pipe( skipPropertyNull('b')); Copy
const x: Observable<{ a: number, b: string | null }>;const z: Observable<{ a: number, b: string }> = x.pipe( skipPropertyNull('b'));
value { a: 1, b: 'foo' } will pass through
value { a: 1, b: null } will be skipped
name of the property to check
Skips / filters values which contains null for the given property. Narrows the type of the given property within the object type from T | null to just T.
Example:
value { a: 1, b: 'foo' } will pass through
value { a: 1, b: null } will be skipped