flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
17
VISUALIZACION/node_modules/underscore/amd/pairs.js
generated
vendored
Executable file
17
VISUALIZACION/node_modules/underscore/amd/pairs.js
generated
vendored
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
define(['./keys'], function (keys) {
|
||||
|
||||
// Convert an object into a list of `[key, value]` pairs.
|
||||
// The opposite of `_.object` with one argument.
|
||||
function pairs(obj) {
|
||||
var _keys = keys(obj);
|
||||
var length = _keys.length;
|
||||
var pairs = Array(length);
|
||||
for (var i = 0; i < length; i++) {
|
||||
pairs[i] = [_keys[i], obj[_keys[i]]];
|
||||
}
|
||||
return pairs;
|
||||
}
|
||||
|
||||
return pairs;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue