Add node modules and new code for release (#168)

Co-authored-by: OliverMKing <OliverMKing@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2022-02-02 10:11:19 -05:00
committed by GitHub
parent ca8d2604ac
commit a0f00e5017
8092 changed files with 1732166 additions and 149 deletions
+18
View File
@@ -0,0 +1,18 @@
var _getLength = require('./_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`.
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;
}
module.exports = object;