Function setWith

  • 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.

    • Optional customizer: SetWithCustomizer<T>

      The function to customize assigned values.

    Returns T

    Returns object.

  • See

    _.setWith

    Type Parameters

    • T extends object

    • TResult

    Parameters

    • object: T
    • path: PropertyPath
    • value: any
    • Optional customizer: SetWithCustomizer<T>

    Returns TResult

Generated using TypeDoc