Modifies object in place by setting a value for a property by path defined as array of strings, parent element comes first. Example: setValueByPath({parent: {value: 1}}, ['parent', 'value'], 2); // returns object {parent: {value: 2}}
Object to set value in
An array of strings, parent element comes first
Value to set
Modified object
Modifies object in place by setting a value for a property by path defined as array of strings, parent element comes first. Example: setValueByPath({parent: {value: 1}}, ['parent', 'value'], 2); // returns object {parent: {value: 2}}