UNPKG

babel-plugin-transform-object-enumerables

Version:

Helps obtain an array of keys, values, and key/value pairs (what the spec calls “entries”) from an object, for the purposes of iteration or serialization

5 lines (4 loc) 153 B
var obj = {key: 'value'}; var keys = Object.enumerableKeys(obj); var values = Object.enumerableValues(obj); var entries = Object.enumerableEntries(obj);