JSPM

object-pairs

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 128996
  • Score
    100M100P100Q157073F
  • License MIT

Object -> [[key0, value0], [key1, value1]...]

Package Exports

  • object-pairs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (object-pairs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

object-pairs Build Status Dependency Status

npm

Turn an object into list of [key, value] pairs for mapping, iterating or other purposes.

Example

> pairs = require('object-pairs')
[Function]
> pairs({ foo: 2, bar: 4 })
[ [ 'foo', 2 ],
  [ 'bar', 4 ] ]

API

pairs(obj)

Return list of key-value pairs.

Install

npm install object-pairs

License

MIT