Add findIndexFrom, findLastIndexFrom, indexOfFrom, & lastIndexOfFrom in FP.

This commit is contained in:
Jeroen Engels
2016-05-12 23:52:29 +02:00
committed by John-David Dalton
parent 64e765bf7a
commit 3d078383cb
2 changed files with 75 additions and 2 deletions

View File

@@ -84,8 +84,9 @@ exports.aryMethod = {
],
'3': [
'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
'getOr', 'inRange', 'intersectionBy', 'intersectionWith', 'invokeArgs',
'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth', 'mergeWith',
'findIndexFrom', 'findLastIndexFrom', 'getOr', 'indexOfFrom', 'inRange',
'intersectionBy', 'intersectionWith', 'invokeArgs', 'invokeArgsMap',
'isEqualWith', 'isMatchWith', 'flatMapDepth', 'lastIndexOfFrom', 'mergeWith',
'orderBy', 'padChars', 'padCharsEnd', 'padCharsStart', 'pullAllBy',
'pullAllWith', 'reduce', 'reduceRight', 'replace', 'set', 'slice',
'sortedIndexBy', 'sortedLastIndexBy', 'transform', 'unionBy', 'unionWith',
@@ -235,9 +236,13 @@ exports.realToAlias = (function() {
exports.remap = {
'curryN': 'curry',
'curryRightN': 'curryRight',
'findIndexFrom': 'findIndex',
'findLastIndexFrom': 'findLastIndex',
'getOr': 'get',
'indexOfFrom': 'indexOf',
'invokeArgs': 'invoke',
'invokeArgsMap': 'invokeMap',
'lastIndexOfFrom': 'lastIndexOf',
'padChars': 'pad',
'padCharsEnd': 'padEnd',
'padCharsStart': 'padStart',