2.0.0 • Published 8 years ago

@ndhoule/entries v2.0.0

Weekly downloads
89
License
MIT
Repository
github
Last release
8 years ago

entries CI

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.