Hex Core JS
    Preparing search index...

    Function omitKeys

    • Returns a subset of the given object containing all keys other than those specified. A functional implementation of the Omit utility type. For the inverse operation, see pickKeys.

      Type Parameters

      Parameters

      • object: T

        The object to filter.

      • keys: K[]

        An array of keys to omit from the object.

      Returns Omit<T, K>

    • Returns a subset of the given object containing all keys other than those specified. A functionality implementation of the Omit utility type. Works on subsets (Pick) of a type T and accepts all keys of the full type T. For the inverse operation, see pickKeys.

      Type Parameters

      • T extends GenericObject
      • SK extends string | number | symbol
      • K extends string | number | symbol

      Parameters

      • object: Pick<T, SK>

        The object to filter.

      • keys: K[]

        An array of keys to omit from the object.

      Returns Omit<Pick<T, SK>, K>

    • Returns a subset of the given object containing all keys other than those specified. A functionality implementation of the Omit utility type. Works on partial subsets (Partial<Pick>) of a type T and accepts all keys of the full type T. For the inverse operation, see pickKeys.

      Type Parameters

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

      Parameters

      • object: Partial<Pick<T, SK>>

        The object to filter.

      • keys: K[]

        An array of keys to omit from the object.

      Returns Omit<Partial<Pick<T, SK>>, K>