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