I would like to make a copy of an existing object and omit some properties. Is there an easy es6+ way of removing the nested bar key for the following structure?
someObj = {
someList: [
{ foo:'1', bar:'x', /*etc could be more values*/ },
{ foo:'2', bar:'x', /*etc could be more values*/ },
{ foo:'3', bar:'x', /*etc could be more values*/ },
],
otherPropOne: '',
anotherProp: [],
//etc
}