The target object or array to fill.
The key (in dot notation) or path where the new value should be filled.
The new value to fill.
The target object or array after filling with the new value.
const object = {users: {name: ['Taylor', 'Otwell']}};
dataFill(object, 'users.name.2', 'Abigail') // {users: {name: ['Taylor', 'Otwell', 'Abigail']}}
Generated using TypeDoc
Fills the given target object or array with the provided new value at the specified key using dot notation. If the key is not found, the target object or array remains unchanged.