Function omit

  • The opposite of _.pick; this method creates an object composed of the own and inherited enumerable properties of object that are not omitted.

    Type Parameters

    • T extends Dictionary<unknown>

    Parameters

    • obj: Nullable<T>

      The source object.

    • Rest...paths: Many<PropertyKey>[]

      The property names to omit, specified individually or in arrays..

    Returns T

  • Type Parameters

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

    Parameters

    • obj: Nullable<T>
    • Rest...paths: Many<K>[]

    Returns Omit<T, K>

    omit

  • Type Parameters

    • T extends object

    Parameters

    • obj: Nullable<T>
    • Rest...paths: Many<PropertyKey>[]

    Returns Partial<T>

    omit