1 /** Used to map aliases to their real names. */
2 exports.aliasToReal = {
6 'eachRight': 'forEachRight',
8 'entriesIn': 'toPairsIn',
10 'extendWith': 'assignInWith',
16 'allPass': 'overEvery',
19 'anyPass': 'overSome',
23 'complement': 'negate',
24 'compose': 'flowRight',
25 'contains': 'includes',
27 'dissocPath': 'unset',
31 'invertObj': 'invert',
36 'pathEq': 'matchesProperty',
43 'propEq': 'matchesProperty',
48 'useWith': 'overArgs',
53 /** Used to map ary to method names. */
56 'attempt', 'castArray', 'ceil', 'create', 'curry', 'curryRight', 'floor',
57 'flow', 'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method',
58 'methodOf', 'mixin', 'over', 'overEvery', 'overSome', 'rest', 'reverse',
59 'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
63 'add', 'after', 'ary', 'assign', 'assignIn', 'at', 'before', 'bind', 'bindAll',
64 'bindKey', 'chunk', 'cloneDeepWith', 'cloneWith', 'concat', 'countBy', 'curryN',
65 'curryRightN', 'debounce', 'defaults', 'defaultsDeep', 'delay', 'difference',
66 'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith',
67 'eq', 'every', 'filter', 'find', 'find', 'findIndex', 'findKey', 'findLast',
68 'findLastIndex', 'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth',
69 'forEach', 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight',
70 'get', 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf',
71 'intersection', 'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch',
72 'join', 'keyBy', 'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues',
73 'matchesProperty', 'maxBy', 'meanBy', 'merge', 'minBy', 'multiply', 'nth',
74 'omit', 'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt',
75 'partial', 'partialRight', 'partition', 'pick', 'pickBy', 'pull', 'pullAll',
76 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
77 'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
78 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
79 'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight',
80 'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars',
81 'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith',
82 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject',
86 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
87 'getOr', 'inRange', 'intersectionBy', 'intersectionWith', 'invokeArgs',
88 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth', 'mergeWith',
89 'orderBy', 'padChars', 'padCharsEnd', 'padCharsStart', 'pullAllBy',
90 'pullAllWith', 'reduce', 'reduceRight', 'replace', 'set', 'slice',
91 'sortedIndexBy', 'sortedLastIndexBy', 'transform', 'unionBy', 'unionWith',
92 'update', 'xorBy', 'xorWith', 'zipWith'
95 'fill', 'setWith', 'updateWith'
99 /** Used to map ary to rearg configs. */
106 /** Used to map method names to their iteratee ary. */
107 exports.iterateeAry = {
142 /** Used to map method names to iteratee rearg configs. */
143 exports.iterateeRearg = {
147 /** Used to map method names to rearg configs. */
148 exports.methodRearg = {
149 'assignInWith': [1, 2, 0],
150 'assignWith': [1, 2, 0],
152 'isEqualWith': [1, 2, 0],
153 'isMatchWith': [2, 1, 0],
154 'mergeWith': [1, 2, 0],
155 'padChars': [2, 1, 0],
156 'padCharsEnd': [2, 1, 0],
157 'padCharsStart': [2, 1, 0],
158 'pullAllBy': [2, 1, 0],
159 'pullAllWith': [2, 1, 0],
160 'setWith': [3, 1, 2, 0],
161 'sortedIndexBy': [2, 1, 0],
162 'sortedLastIndexBy': [2, 1, 0],
163 'updateWith': [3, 1, 2, 0],
167 /** Used to map method names to spread configs. */
168 exports.methodSpread = {
176 /** Used to identify methods which mutate arrays or objects. */
191 'assignInWith': true,
194 'defaultsDeep': true,
207 /** Used to track methods with placeholder support */
208 exports.placeholder = {
217 /** Used to map real names to their aliases. */
218 exports.realToAlias = (function() {
219 var hasOwnProperty = Object.prototype.hasOwnProperty,
220 object = exports.aliasToReal,
223 for (var key in object) {
224 var value = object[key];
225 if (hasOwnProperty.call(result, value)) {
226 result[value].push(key);
228 result[value] = [key];
234 /** Used to map method names to other names. */
237 'curryRightN': 'curryRight',
239 'invokeArgs': 'invoke',
240 'invokeArgsMap': 'invokeMap',
242 'padCharsEnd': 'padEnd',
243 'padCharsStart': 'padStart',
245 'spreadFrom': 'spread',
247 'trimCharsEnd': 'trimEnd',
248 'trimCharsStart': 'trimStart'
251 /** Used to track methods that skip fixing their arity. */
252 exports.skipFixed = {
261 /** Used to track methods that skip rearranging arguments. */
262 exports.skipRearg = {
277 'matchesProperty': true,
282 'partialRight': true,