Turn an object into list of [key, value]
pairs for mapping, iterating or other purposes.
> pairs = require('object-pairs')
[Function]
> pairs({ foo: 2, bar: 4 })
[ [ 'foo', 2 ],
[ 'bar', 4 ] ]
Return list of key-value pairs.
- zipmap for the opposite transformation.
npm install object-pairs
MIT