mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Refactor reduceRight and modify a _.difference benchmark.
Former-commit-id: b70272ac5316fe1bee52b9611a1a5ea4d761dd3c
This commit is contained in:
4
build.js
4
build.js
@@ -133,7 +133,7 @@
|
||||
'random': [],
|
||||
'range': [],
|
||||
'reduce': [],
|
||||
'reduceRight': ['keys', 'reduce'],
|
||||
'reduceRight': ['forEach', 'keys'],
|
||||
'reject': ['identity'],
|
||||
'rest': [],
|
||||
'result': ['isFunction'],
|
||||
@@ -1146,7 +1146,7 @@
|
||||
source = source.replace(/noArraySliceOnStrings *\?[^:]+: *([^)]+)/g, '$1');
|
||||
|
||||
// remove `noCharByIndex` from `_.reduceRight`
|
||||
source = source.replace(/noCharByIndex *&&[^:]+: *([^;]+)/g, '$1');
|
||||
source = source.replace(/}\s*else if *\(noCharByIndex[^}]+/, '');
|
||||
|
||||
source = removeVar(source, 'extendIteratorOptions');
|
||||
source = removeVar(source, 'iteratorTemplate');
|
||||
|
||||
Reference in New Issue
Block a user