mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Optimize _.contains for arrays.
Former-commit-id: 050743f77e7047f86d5b14b97d35846c9d2e749c
This commit is contained in:
4
build.js
4
build.js
@@ -119,7 +119,7 @@
|
||||
'cloneDeep': ['baseClone', 'baseCreateCallback'],
|
||||
'compact': [],
|
||||
'compose': ['isFunction'],
|
||||
'contains': ['baseEach', 'getIndexOf', 'isString'],
|
||||
'contains': ['baseEach', 'getIndexOf', 'isArray', 'isString'],
|
||||
'countBy': ['createAggregator'],
|
||||
'createCallback': ['baseCreateCallback', 'baseIsEqual', 'isObject', 'keys'],
|
||||
'curry': ['createBound'],
|
||||
@@ -2924,7 +2924,7 @@
|
||||
_.pull(funcDepMap.wrapperValueOf, 'wrapperToString');
|
||||
}
|
||||
if (!isLodash('contains')) {
|
||||
_.pull(funcDepMap.contains, 'isString');
|
||||
_.pull(funcDepMap.contains, 'isArray', 'isString');
|
||||
}
|
||||
if (!isLodash('flatten')) {
|
||||
_.pull(funcDepMap.flatten, 'map');
|
||||
|
||||
Reference in New Issue
Block a user