showing results for - "delete list of keys from object javascript"
Lorenzo
20 Jan 2020
1var obj = {a: 1, b: 2, c: 3, d: 4, e: 5 };
2
3['c', 'e'].forEach(e => delete obj[e]);
4
5// obj is now {a:1, b:2, d:4}
6