The target object or array.
The key to set the value at using dot notation.
The value to set.
Specifies whether to overwrite an existing value at the key.
The modified target object or array.
const object = {users: {name: ['Taylor', 'Otwell']}};
dataSet(object, 'users.name.0', 'Abigail') // {users: {name: ['Abigail', 'Otwell']}}
Generated using TypeDoc
Sets a value in a nested object or array based on the specified key.