What\'s a good and short way to remove a value from an object at a specific key without mutating the original object?
I\'d like to do something like:
with lodash cloneDeep and delete
(note: lodash clone can be used instead for shallow objects)
const obj = {a: 1, b: 2, c: 3} const unwantedKey = 'a' const _ = require('lodash') const objCopy = _.cloneDeep(obj) delete objCopy[unwantedKey] // objCopy = {b: 2, c: 3}