@ndhoule/entries
v2.0.0 functional component entries
entries
Utility to get key-value pairs from an object.
Installation
$ component install ndhoule/entries
$ npm install @ndhoule/entries
API
entries(object : Object)
Return a nested array containing an object's iterable, own key-value pairs.
entries({ a: 1, b: 2 });
// => [['a', 1], ['b', 2]]
License
Released under the MIT license.