MCPcopy Index your code
hub / github.com/jashkenas/underscore / pairs

Function pairs

underscore.js:575–583  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

573 // Convert an object into a list of `[key, value]` pairs.
574 // The opposite of `_.object` with one argument.
575 function pairs(obj) {
576 var _keys = keys(obj);
577 var length = _keys.length;
578 var pairs = Array(length);
579 for (var i = 0; i < length; i++) {
580 pairs[i] = [_keys[i], obj[_keys[i]]];
581 }
582 return pairs;
583 }
584
585 // Invert the keys and values of an object. The values must be serializable.
586 function invert(obj) {

Callers

nothing calls this directly

Calls 1

keysFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…