@eroyeroy/utils - v0.1.0
    Preparing search index...

    Function omit

    • Creates a new object with the specified keys omitted.

      Type Parameters

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

      Parameters

      • obj: T

        The source object.

      • keys: readonly K[]

        Array of keys to exclude.

      Returns Omit<T, K>

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