Optimize this binding in iterator methods and remove _.bind as a dependency for several methods.

Former-commit-id: 60af002cd80758fea81fbff9c2b20b1ccf3ccffd
This commit is contained in:
John-David Dalton
2012-05-31 10:14:01 -05:00
parent f13a0cc7e0
commit b432721fe5
3 changed files with 41 additions and 26 deletions

View File

@@ -72,15 +72,15 @@
'delay': [],
'difference': ['indexOf'],
'escape': [],
'every': ['bind', 'createIterator', 'identity'],
'every': ['createIterator', 'identity'],
'extend': ['createIterator'],
'filter': ['bind', 'createIterator', 'identity'],
'find': ['bind', 'createIterator'],
'filter': ['createIterator', 'identity'],
'find': ['createIterator'],
'first': [],
'flatten': ['isArray'],
'forEach': ['bind', 'createIterator'],
'forEach': ['createIterator'],
'functions': ['createIterator'],
'groupBy': ['bind', 'createIterator'],
'groupBy': ['createIterator'],
'has': [],
'identity': [],
'indexOf': ['sortedIndex'],
@@ -106,10 +106,10 @@
'keys': ['createIterator'],
'last': [],
'lastIndexOf': [],
'map': ['bind', 'createIterator', 'identity'],
'max': ['bind'],
'map': ['createIterator', 'identity'],
'max': [],
'memoize': [],
'min': ['bind'],
'min': [],
'mixin': ['forEach'],
'noConflict': [],
'once': [],
@@ -117,20 +117,20 @@
'pick': [],
'pluck': ['createIterator'],
'range': [],
'reduce': ['bind', 'createIterator'],
'reduceRight': ['bind', 'keys'],
'reject': ['bind', 'createIterator', 'identity'],
'reduce': ['createIterator'],
'reduceRight': ['keys'],
'reject': ['createIterator', 'identity'],
'rest': [],
'result': [],
'shuffle': [],
'size': ['keys'],
'some': ['bind', 'createIterator', 'identity'],
'sortBy': ['bind', 'map', 'pluck'],
'some': ['createIterator', 'identity'],
'sortBy': ['map', 'pluck'],
'sortedIndex': [],
'tap': [],
'template': ['escape'],
'throttle': [],
'times': ['bind'],
'times': [],
'toArray': ['values'],
'union': ['indexOf'],
'uniq': ['indexOf'],