Optimize _.reduce and _.reduceRight.

Former-commit-id: 6f281aae7f285458feafb02957fcd90fb09c10bd
This commit is contained in:
John-David Dalton
2012-12-06 23:28:12 -08:00
parent 090fb09955
commit cdeb50132d
2 changed files with 36 additions and 11 deletions

View File

@@ -135,7 +135,7 @@
'pluck': ['map'],
'random': [],
'range': [],
'reduce': ['forEach'],
'reduce': ['forEach', 'isArray'],
'reduceRight': ['forEach', 'isString', 'keys'],
'reject': ['filter'],
'rest': [],