Refactor reduceRight and modify a _.difference benchmark.

Former-commit-id: b70272ac5316fe1bee52b9611a1a5ea4d761dd3c
This commit is contained in:
John-David Dalton
2012-09-22 15:55:57 -07:00
parent 1ca26ce676
commit 8532dc4b75
3 changed files with 16 additions and 16 deletions

View File

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