mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Reduce lodash file size.
Former-commit-id: c6c309cbbc5f93bffb852726e831ba9f90c332a0
This commit is contained in:
10
lodash.js
10
lodash.js
@@ -2756,10 +2756,11 @@
|
||||
result = {};
|
||||
|
||||
while (++index < length) {
|
||||
var key = keys[index];
|
||||
if (values) {
|
||||
result[keys[index]] = values[index];
|
||||
result[key] = values[index];
|
||||
} else {
|
||||
result[keys[index][0]] = keys[index][1];
|
||||
result[key[0]] = key[1];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
@@ -2941,8 +2942,9 @@
|
||||
result = [];
|
||||
|
||||
while (++index < length) {
|
||||
if (indexOf(result, flattened[index]) < 0) {
|
||||
result.push(flattened[index]);
|
||||
var value = flattened[index];
|
||||
if (indexOf(result, value) < 0) {
|
||||
result.push(value);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user