component-entries

1.0.0 • Public • Published

entries Circle CI

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.

/component-entries/

    Package Sidebar

    Install

    npm i component-entries

    Weekly Downloads

    3

    Version

    1.0.0

    License

    none

    Last publish

    Collaborators

    • ndhoule