Example 1 — Official: Keys and Values
Pair each key with the value at the same index — same call as the docs.
_.object(["moe", "larry", "curly"], [30, 40, 50]);
// → { moe: 30, larry: 40, curly: 50 } How It Works
- Two lists. Names are keys; ages are values at matching indexes.
- Index 0.
"moe"maps to30. - Next slots. Same pairing for
larryandcurly. - Result. A new plain object — the arrays stay unchanged.

