Add _.forEachRight, _.forInRight, _.forOwnRight, _.findLast, _.findLastIndex, and _.findLastKey methods. [closes #309]

Former-commit-id: 7097f79e278bf2dfacfed449ce5f64a2dc19a662
This commit is contained in:
John-David Dalton
2013-07-27 00:21:23 -07:00
parent 4398fca1bd
commit 0404776d87
4 changed files with 276 additions and 36 deletions

View File

@@ -115,12 +115,18 @@
'filter': ['baseEach', 'createCallback', 'isArray'],
'find': ['baseEach', 'createCallback', 'isArray'],
'findIndex': ['createCallback'],
'findLastIndex': ['createCallback'],
'findKey': ['createCallback', 'forOwn'],
'findLast': ['createCallback', 'forEachRight'],
'findLastKey': ['createCallback', 'forOwnRight'],
'first': ['createCallback', 'slice'],
'flatten': ['baseFlatten', 'map'],
'forEach': ['baseEach', 'createCallback', 'isArray'],
'forEachRight': ['createCallback', 'forEach', 'isString', 'keys'],
'forIn': ['createIterator'],
'forInRight': ['createCallback', 'forIn'],
'forOwn': ['createIterator'],
'forOwnRight': ['createCallback', 'keys'],
'functions': ['forIn', 'isFunction'],
'groupBy': ['createAggregator'],
'has': [],
@@ -169,7 +175,7 @@
'random': [],
'range': [],
'reduce': ['baseEach', 'createCallback', 'isArray'],
'reduceRight': ['createCallback', 'forEach', 'isString', 'keys'],
'reduceRight': ['createCallback', 'forEachRight'],
'reject': ['createCallback', 'filter'],
'rest': ['createCallback', 'slice'],
'result': ['isFunction'],
@@ -295,6 +301,7 @@
'compact',
'difference',
'findIndex',
'findLastIndex',
'first',
'flatten',
'indexOf',
@@ -323,8 +330,10 @@
'every',
'filter',
'find',
'findLast',
'findWhere',
'forEach',
'forEachRight',
'groupBy',
'indexBy',
'invoke',
@@ -365,8 +374,11 @@
'cloneDeep',
'defaults',
'findKey',
'findLastKey',
'forIn',
'forInRight',
'forOwn',
'forOwnRight',
'functions',
'has',
'invert',
@@ -515,8 +527,14 @@
'createCallback',
'findIndex',
'findKey',
'findLast',
'findLastIndex',
'findLastKey',
'forEachRight',
'forIn',
'forInRight',
'forOwn',
'forOwnRight',
'indexBy',
'isPlainObject',
'merge',