Example 1 — Official: Three Pairs
The docs turn a small object into [key, value] arrays.
_.pairs({one: 1, two: 2, three: 3});
// → [["one", 1], ["two", 2], ["three", 3]] How It Works
- Source. Three own properties:
one,two,three. - Each key. Underscore pushes
[key, value]into a new array. - Order. Entries follow the object’s own enumerable key order.
- Official result. Three nested arrays of length 2.

