component-entries
v1.0.0
Published
Utility to get key-value pairs from an object
Downloads
5
Readme
entries
Utility to get key-value pairs from an object.
Installation
$ component install ndhoule/entries
API
entries(object)
Return a nested array containing an object's iterable, own key-value pairs.
entries({ a: 1, b: 2 });
// => [['a', 1], ['b', 2]]
License
Code copyright 2014 Nathan Houle. Released under the MIT license.