Deletes a single key or multiple keys from an object
const obj = { "foo": true, "bar": false, "one": 2};objFlush(obj, 'foo');=>{ "bar": false, "one": 2}objFlush(obj, ['foo', 'bar']);=> { "one": 2}objFlush(obj);=> {}
An object
Optional
The key or an array of keys to remove.
Generated using TypeDoc
Deletes a single key or multiple keys from an object
Example