Added the underscore node_module.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
This commit is contained in:
17
node_modules/underscore/amd/pairs.js
generated
vendored
Normal file
17
node_modules/underscore/amd/pairs.js
generated
vendored
Normal 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;
|
||||
|
||||
});
|
Reference in New Issue
Block a user