component-entries
v1.0.0 entries utility
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.
npm i component-entries
Metadata
- Unknown
- Whatever
- Nathan Houle
- released 12/19/2014