Optimize _.invert, _.pairs, and _.values.

Former-commit-id: d2725dc8c75254784d450f2a7e997e079b8c3183
This commit is contained in:
John-David Dalton
2012-12-18 02:45:56 -08:00
parent 12bc852c89
commit 7bea30b2e6
2 changed files with 49 additions and 35 deletions

View File

@@ -97,7 +97,7 @@
'indexOf': ['sortedIndex'],
'initial': [],
'intersection': ['indexOf'],
'invert': ['forOwn'],
'invert': ['keys'],
'invoke': ['forEach'],
'isArguments': [],
'isArray': [],
@@ -129,7 +129,7 @@
'object': [],
'omit': ['forIn', 'indexOf'],
'once': [],
'pairs': ['forOwn'],
'pairs': ['keys'],
'partial': ['isFunction', 'isObject'],
'pick': ['forIn'],
'pluck': ['map'],
@@ -155,7 +155,7 @@
'uniq': ['identity', 'indexOf'],
'uniqueId': [],
'value': ['mixin'],
'values': ['forOwn'],
'values': ['keys'],
'where': ['filter', 'keys'],
'without': ['indexOf'],
'wrap': [],