UNPKG
object-pairs
Version:
latest (0.1.0)
0.1.0
Object -> [[key0, value0], [key1, value1]...]
github.com/eush77/object-pairs
eush77/object-pairs
object-pairs
/
index.js
8 lines
(6 loc)
•
133 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
'use strict'
;
module
.
exports
=
function
(
obj
) {
return
Object
.
keys
(obj).
map
(
function
(
key
) {
return
[key, obj[key]]; }); };