Reduce lodash file size.

Former-commit-id: c6c309cbbc5f93bffb852726e831ba9f90c332a0
This commit is contained in:
John-David Dalton
2012-10-06 23:39:41 -07:00
parent 1104b28bc1
commit 8f7d5dcb4d
3 changed files with 17 additions and 15 deletions

View File

@@ -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;