@ndhoule/entries

v2.0.0
Utility to get key-value pairs from an object
functional component entries

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.

npm i @ndhoule/entries

Metadata

  • MIT
  • Whatever
  • Nathan Houle
  • released 5/2/2016

Downloads

Maintainers