JS
See the Pen thecodelog.com - ES8 Object Static Methods 1 by Deano (@deangilewicz) on CodePen.
Object.entries returns an array of a given object’s own enumerable property [key, value] pairs, in the same order as that provided by a for…in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).
See the Pen thecodelog.com - ES8 Object Static Methods 2 by Deano (@deangilewicz) on CodePen.
Object.getOwnPropertyDescriptors returns a property descriptor for an own property (that is, one directly present on an object and not in the object’s prototype chain) of a given object.
See the Pen thecodelog.com - ES8 Object Static Methods 3 by Deano (@deangilewicz) on CodePen.