• Removes the specified key from the specified dict and returns a copy of the updated object.

    Type Parameters

    • T extends AnyDict

      Type of the specified dict object.

    Parameters

    • dict: T

      Object containing keys to omit.

    • key: string

      Key in the object to omit.

    Returns T

    Object dict with specified key omitted.

  • Removes the specified keys from the specified dict and returns a copy of the updated object.

    Type Parameters

    • T extends AnyDict

      Type of the specified dict object.

    Parameters

    • dict: T

      Object containing keys to omit.

    • keys: string[]

      Keys in the object to omit.

    Returns T

    Object dict with specified keys omitted.