• This method is like _.set except that it accepts customizer which is invoked to produce the objects of path. If customizer returns undefined path creation is handled by the method instead. The customizer is invoked with three arguments: (nsValue, key, nsObject).

    Type Parameters

    • T extends object

    Parameters

    • object: T

      The object to modify.

    • path: PropertyPath

      The path of the property to set.

    • value: any

      The value to set.

    • Optionalcustomizer: SetWithCustomizer<T>

      The function to customize assigned values.

    Returns T

    Returns object.

  • Type Parameters

    • T extends object
    • TResult

    Parameters

    • object: T
    • path: PropertyPath
    • value: any
    • Optionalcustomizer: SetWithCustomizer<T>

    Returns TResult

    _.setWith