farcasmihai91
5/13/2018 - 8:17 PM

ES6 Object Methods

Object.keys(myObj) // returns an array with all the object's keys
Object.values(myObj) // returns an array with all the object's values
Object.entries(myObj) // returns an array of arrays containing both the keys and the values.