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