ezyVet Javascript Helper Library Documentation
    Preparing search index...

    Function omitBy

    • omitBy - this method creates an object composed of the own and inherited enumerable string keyed properties of object that predicate doesn't return truthy for.

      Type Parameters

      • T extends Record<string, any>

      Parameters

      • object: T
      • predicate: (v: any, k: string) => boolean

      Returns Partial<T>

      {Partial}

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