Today I Learned

hashrocket A Hashrocket project

JS delete keyword

Javascript has a delete keyword that can be used to remove properties from objects:

let ob = { foo: 'foo', bar: 'bar' };

delete ob['bar'];
// Object {foo: 'foo'}

// Object {}
See More #javascript TILs
Looking for help? At Hashrocket, our JavaScript experts launch scalable, performant apps on the Web, Android and iOS. Contact us and find out how we can help you.