Tweakr
    Preparing search index...

    Function omitBy

    • Creates a new object excluding properties that satisfy the predicate function.

      Type Parameters

      • T extends object

      Parameters

      • obj: T

        Source object

      • predicate: (value: T[keyof T], key: keyof T) => boolean

        Function invoked per property

      Returns Partial<T>

      A new object with excluded properties

      omitBy({ a: 1, b: '2', c: 3 }, val => typeof val === 'number');
      // => { b: '2' }

      1.2.0