1 /** Used to map aliases to their real names. */
2 exports.aliasToReal = {
6 'eachRight': 'forEachRight',
8 'entriesIn': 'toPairsIn',
10 'extendAll': 'assignInAll',
11 'extendAllWith': 'assignInAllWith',
12 'extendWith': 'assignInWith',
15 // Methods that are curried variants of others.
16 'conforms': 'conformsTo',
25 'allPass': 'overEvery',
28 'anyPass': 'overSome',
32 'complement': 'negate',
33 'compose': 'flowRight',
34 'contains': 'includes',
36 'dissocPath': 'unset',
37 'dropLast': 'dropRight',
38 'dropLastWhile': 'dropRightWhile',
43 'invertObj': 'invert',
48 'pathEq': 'matchesProperty',
55 'propEq': 'matchesProperty',
58 'symmetricDifference': 'xor',
59 'symmetricDifferenceBy': 'xorBy',
60 'symmetricDifferenceWith': 'xorWith',
61 'takeLast': 'takeRight',
62 'takeLastWhile': 'takeRightWhile',
65 'useWith': 'overArgs',
66 'where': 'conformsTo',
71 /** Used to map ary to method names. */
74 'assignAll', 'assignInAll', 'attempt', 'castArray', 'ceil', 'create',
75 'curry', 'curryRight', 'defaultsAll', 'defaultsDeepAll', 'floor', 'flow',
76 'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method', 'mergeAll',
77 'methodOf', 'mixin', 'nthArg', 'over', 'overEvery', 'overSome','rest', 'reverse',
78 'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
79 'uniqueId', 'words', 'zipAll'
82 'add', 'after', 'ary', 'assign', 'assignAllWith', 'assignIn', 'assignInAllWith',
83 'at', 'before', 'bind', 'bindAll', 'bindKey', 'chunk', 'cloneDeepWith',
84 'cloneWith', 'concat', 'conformsTo', 'countBy', 'curryN', 'curryRightN',
85 'debounce', 'defaults', 'defaultsDeep', 'defaultTo', 'delay', 'difference',
86 'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith', 'eq',
87 'every', 'filter', 'find', 'findIndex', 'findKey', 'findLast', 'findLastIndex',
88 'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth', 'forEach',
89 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'get',
90 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf', 'intersection',
91 'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch', 'join', 'keyBy',
92 'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues', 'matchesProperty',
93 'maxBy', 'meanBy', 'merge', 'mergeAllWith', 'minBy', 'multiply', 'nth', 'omit',
94 'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt', 'partial',
95 'partialRight', 'partition', 'pick', 'pickBy', 'propertyOf', 'pull', 'pullAll',
96 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
97 'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
98 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
99 'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight',
100 'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars',
101 'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith',
102 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject',
106 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
107 'findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom', 'getOr',
108 'includesFrom', 'indexOfFrom', 'inRange', 'intersectionBy', 'intersectionWith',
109 'invokeArgs', 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth',
110 'lastIndexOfFrom', 'mergeWith', 'orderBy', 'padChars', 'padCharsEnd',
111 'padCharsStart', 'pullAllBy', 'pullAllWith', 'rangeStep', 'rangeStepRight',
112 'reduce', 'reduceRight', 'replace', 'set', 'slice', 'sortedIndexBy',
113 'sortedLastIndexBy', 'transform', 'unionBy', 'unionWith', 'update', 'xorBy',
117 'fill', 'setWith', 'updateWith'
121 /** Used to map ary to rearg configs. */
128 /** Used to map method names to their iteratee ary. */
129 exports.iterateeAry = {
142 'findLastIndexFrom': 1,
168 /** Used to map method names to iteratee rearg configs. */
169 exports.iterateeRearg = {
171 'reduceRight': [1, 0]
174 /** Used to map method names to rearg configs. */
175 exports.methodRearg = {
176 'assignInAllWith': [1, 0],
177 'assignInWith': [1, 2, 0],
178 'assignAllWith': [1, 0],
179 'assignWith': [1, 2, 0],
180 'differenceBy': [1, 2, 0],
181 'differenceWith': [1, 2, 0],
183 'intersectionBy': [1, 2, 0],
184 'intersectionWith': [1, 2, 0],
185 'isEqualWith': [1, 2, 0],
186 'isMatchWith': [2, 1, 0],
187 'mergeAllWith': [1, 0],
188 'mergeWith': [1, 2, 0],
189 'padChars': [2, 1, 0],
190 'padCharsEnd': [2, 1, 0],
191 'padCharsStart': [2, 1, 0],
192 'pullAllBy': [2, 1, 0],
193 'pullAllWith': [2, 1, 0],
194 'rangeStep': [1, 2, 0],
195 'rangeStepRight': [1, 2, 0],
196 'setWith': [3, 1, 2, 0],
197 'sortedIndexBy': [2, 1, 0],
198 'sortedLastIndexBy': [2, 1, 0],
199 'unionBy': [1, 2, 0],
200 'unionWith': [1, 2, 0],
201 'updateWith': [3, 1, 2, 0],
203 'xorWith': [1, 2, 0],
207 /** Used to map method names to spread configs. */
208 exports.methodSpread = {
209 'assignAll': { 'start': 0 },
210 'assignAllWith': { 'start': 0 },
211 'assignInAll': { 'start': 0 },
212 'assignInAllWith': { 'start': 0 },
213 'defaultsAll': { 'start': 0 },
214 'defaultsDeepAll': { 'start': 0 },
215 'invokeArgs': { 'start': 2 },
216 'invokeArgsMap': { 'start': 2 },
217 'mergeAll': { 'start': 0 },
218 'mergeAllWith': { 'start': 0 },
219 'partial': { 'start': 1 },
220 'partialRight': { 'start': 1 },
221 'without': { 'start': 1 },
222 'zipAll': { 'start': 0 }
225 /** Used to identify methods which mutate arrays or objects. */
240 'assignAllWith': true,
243 'assignInAllWith': true,
244 'assignInWith': true,
248 'defaultsDeep': true,
249 'defaultsDeepAll': true,
252 'mergeAllWith': true,
264 /** Used to track methods with placeholder support */
265 exports.placeholder = {
274 /** Used to map real names to their aliases. */
275 exports.realToAlias = (function() {
276 var hasOwnProperty = Object.prototype.hasOwnProperty,
277 object = exports.aliasToReal,
280 for (var key in object) {
281 var value = object[key];
282 if (hasOwnProperty.call(result, value)) {
283 result[value].push(key);
285 result[value] = [key];
291 /** Used to map method names to other names. */
293 'assignAll': 'assign',
294 'assignAllWith': 'assignWith',
295 'assignInAll': 'assignIn',
296 'assignInAllWith': 'assignInWith',
298 'curryRightN': 'curryRight',
299 'defaultsAll': 'defaults',
300 'defaultsDeepAll': 'defaultsDeep',
302 'findIndexFrom': 'findIndex',
303 'findLastFrom': 'findLast',
304 'findLastIndexFrom': 'findLastIndex',
306 'includesFrom': 'includes',
307 'indexOfFrom': 'indexOf',
308 'invokeArgs': 'invoke',
309 'invokeArgsMap': 'invokeMap',
310 'lastIndexOfFrom': 'lastIndexOf',
312 'mergeAllWith': 'mergeWith',
314 'padCharsEnd': 'padEnd',
315 'padCharsStart': 'padStart',
317 'rangeStep': 'range',
318 'rangeStepRight': 'rangeRight',
320 'spreadFrom': 'spread',
322 'trimCharsEnd': 'trimEnd',
323 'trimCharsStart': 'trimStart',
327 /** Used to track methods that skip fixing their arity. */
328 exports.skipFixed = {
338 /** Used to track methods that skip rearranging arguments. */
339 exports.skipRearg = {
354 'matchesProperty': true,
359 'partialRight': true,
367 'zipObjectDeep': true