The object or array to remove the key from.
The key in dot notation or path of the element to remove.
The modified object or array.
const object = {users: {name: ['Taylor', 'Otwell']}};
dataForget(object, 'users.name.0') // {users: {name: ['Otwell']}}
Generated using TypeDoc
Removes a specific key (dot notation) from an object or array.