Added the underscore node_module.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s

This commit is contained in:
2023-11-19 13:27:05 +01:00
parent 9e76cefde3
commit 2b58149655
857 changed files with 16626 additions and 105549 deletions

16
node_modules/underscore/modules/object.js generated vendored Normal file
View File

@ -0,0 +1,16 @@
import getLength from './_getLength.js';
// Converts lists into objects. Pass either a single array of `[key, value]`
// pairs, or two parallel arrays of the same length -- one of keys, and one of
// the corresponding values. Passing by pairs is the reverse of `_.pairs`.
export default function object(list, values) {
var result = {};
for (var i = 0, length = getLength(list); i < length; i++) {
if (values) {
result[list[i]] = values[i];
} else {
result[list[i][0]] = list[i][1];
}
}
return result;
}