common-stuff
    Preparing search index...

    Function omit

    • Returns a new object with the given keys removed from obj.

      Own enumerable properties are copied. Inherited properties are not.

      Type Parameters

      • T extends object
      • K extends string | number | symbol

      Parameters

      • obj: T
      • keys: readonly K[]

      Returns Omit<T, K>

      omit({ a: 1, b: 2, c: 3 }, ['b'])
      // { a: 1, c: 3 }