@w11k/rx-ninja
    Preparing search index...

    Function skipSomePropertyNil

    • Skips / filters values which contains null or undefined for any property. Narrows the type of all properties within the object type from T | null | undefined to just T.

      marble

      Example:

      const x: Observable<{ a: number | null, b: string | undefined }>;

      const z: Observable<{ a: number, b: string }> = x.pipe(
      skipSomePropertyNil
      );

      value { a: 1, b: 'foo' } will pass through

      value { a: 1, b: undefined } will be skipped

      value { a: null, b: 'foo' } will be skipped

      Type Parameters

      • T extends object

      Returns (
          source: Observable<T>,
      ) => Observable<{ [P in string | number | symbol]: NonNil<T[P]> }>