1.0.0 • Published 9 years ago
component-entries v1.0.0
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.
1.0.0
9 years ago