• Immutably sets a value in an object or array at a given path, denoted by dot notation or an array.

    If the value is already identical nothing is changed. i.e. values is returned. This function is similar to Lodash 'set', however it also;

    • will make the path if required
    • will also merge a given object or array at the path if desired

    Parameters

    • values: object
    • path: string | PathArray
    • value: any
    • mergeAtTarget: boolean = false

    Returns any

Generated using TypeDoc