- Preparing search index...
- The search index is not available
@w11k/rx-ninja
Function skipSomePropertyNull
- skipSomePropertyNull<T>(): ((source) => Observable<{
[P in string | number | symbol]: NonNull<T[P]>
}>)
-
Returns ((source) => Observable<{
[P in string | number | symbol]: NonNull<T[P]>
}>)
-
- (source): Observable<{
[P in string | number | symbol]: NonNull<T[P]>
}>
-
Returns Observable<{
[P in string | number | symbol]: NonNull<T[P]>
}>
Skips / filters values which contains null for any property. Narrows the type of all properties 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
value { a: null, b: 'foo' } will be skipped