mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Optimize lodash function to avoid slow path for arrays.
Former-commit-id: 24e2c4ac2525ae38e214fdb0ea8e3ab664d784b7
This commit is contained in:
3
build.js
3
build.js
@@ -169,7 +169,7 @@
|
||||
'union': ['uniq'],
|
||||
'uniq': ['createCallback', 'indexOf'],
|
||||
'uniqueId': [],
|
||||
'value': ['forOwn'],
|
||||
'value': ['forOwn', 'isArray'],
|
||||
'values': ['keys'],
|
||||
'where': ['filter'],
|
||||
'without': ['indexOf'],
|
||||
@@ -1723,6 +1723,7 @@
|
||||
dependencyMap.pick = _.without(dependencyMap.pick, 'forIn', 'isObject');
|
||||
dependencyMap.reduceRight = _.without(dependencyMap.reduceRight, 'isString');
|
||||
dependencyMap.template = _.without(dependencyMap.template, 'keys', 'values');
|
||||
dependencyMap.value = _.without(dependencyMap.value, 'isArray');
|
||||
dependencyMap.where.push('find', 'isEmpty');
|
||||
|
||||
if (useUnderscoreClone) {
|
||||
|
||||
Reference in New Issue
Block a user