DEV Community

Discussion on: Cool Object methods in JavaScript

Collapse
 
squigglybob profile image
squigglybob

Yep, that's nice. Object.keys(obj) always bothered me as then you needed to grab the value from the obj with the index of the key, but this way you have it there when you map etc.