00001
00002 exports.aliasToReal = {
00003
00004
00005 'each': 'forEach',
00006 'eachRight': 'forEachRight',
00007 'entries': 'toPairs',
00008 'entriesIn': 'toPairsIn',
00009 'extend': 'assignIn',
00010 'extendAll': 'assignInAll',
00011 'extendAllWith': 'assignInAllWith',
00012 'extendWith': 'assignInWith',
00013 'first': 'head',
00014
00015
00016 'conforms': 'conformsTo',
00017 'matches': 'isMatch',
00018 'property': 'get',
00019
00020
00021 '__': 'placeholder',
00022 'F': 'stubFalse',
00023 'T': 'stubTrue',
00024 'all': 'every',
00025 'allPass': 'overEvery',
00026 'always': 'constant',
00027 'any': 'some',
00028 'anyPass': 'overSome',
00029 'apply': 'spread',
00030 'assoc': 'set',
00031 'assocPath': 'set',
00032 'complement': 'negate',
00033 'compose': 'flowRight',
00034 'contains': 'includes',
00035 'dissoc': 'unset',
00036 'dissocPath': 'unset',
00037 'dropLast': 'dropRight',
00038 'dropLastWhile': 'dropRightWhile',
00039 'equals': 'isEqual',
00040 'identical': 'eq',
00041 'indexBy': 'keyBy',
00042 'init': 'initial',
00043 'invertObj': 'invert',
00044 'juxt': 'over',
00045 'omitAll': 'omit',
00046 'nAry': 'ary',
00047 'path': 'get',
00048 'pathEq': 'matchesProperty',
00049 'pathOr': 'getOr',
00050 'paths': 'at',
00051 'pickAll': 'pick',
00052 'pipe': 'flow',
00053 'pluck': 'map',
00054 'prop': 'get',
00055 'propEq': 'matchesProperty',
00056 'propOr': 'getOr',
00057 'props': 'at',
00058 'symmetricDifference': 'xor',
00059 'symmetricDifferenceBy': 'xorBy',
00060 'symmetricDifferenceWith': 'xorWith',
00061 'takeLast': 'takeRight',
00062 'takeLastWhile': 'takeRightWhile',
00063 'unapply': 'rest',
00064 'unnest': 'flatten',
00065 'useWith': 'overArgs',
00066 'where': 'conformsTo',
00067 'whereEq': 'isMatch',
00068 'zipObj': 'zipObject'
00069 };
00070
00072 exports.aryMethod = {
00073 '1': [
00074 'assignAll', 'assignInAll', 'attempt', 'castArray', 'ceil', 'create',
00075 'curry', 'curryRight', 'defaultsAll', 'defaultsDeepAll', 'floor', 'flow',
00076 'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method', 'mergeAll',
00077 'methodOf', 'mixin', 'nthArg', 'over', 'overEvery', 'overSome','rest', 'reverse',
00078 'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
00079 'uniqueId', 'words', 'zipAll'
00080 ],
00081 '2': [
00082 'add', 'after', 'ary', 'assign', 'assignAllWith', 'assignIn', 'assignInAllWith',
00083 'at', 'before', 'bind', 'bindAll', 'bindKey', 'chunk', 'cloneDeepWith',
00084 'cloneWith', 'concat', 'conformsTo', 'countBy', 'curryN', 'curryRightN',
00085 'debounce', 'defaults', 'defaultsDeep', 'defaultTo', 'delay', 'difference',
00086 'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith', 'eq',
00087 'every', 'filter', 'find', 'findIndex', 'findKey', 'findLast', 'findLastIndex',
00088 'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth', 'forEach',
00089 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'get',
00090 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf', 'intersection',
00091 'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch', 'join', 'keyBy',
00092 'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues', 'matchesProperty',
00093 'maxBy', 'meanBy', 'merge', 'mergeAllWith', 'minBy', 'multiply', 'nth', 'omit',
00094 'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt', 'partial',
00095 'partialRight', 'partition', 'pick', 'pickBy', 'propertyOf', 'pull', 'pullAll',
00096 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
00097 'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
00098 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
00099 'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight',
00100 'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars',
00101 'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith',
00102 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject',
00103 'zipObjectDeep'
00104 ],
00105 '3': [
00106 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
00107 'findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom', 'getOr',
00108 'includesFrom', 'indexOfFrom', 'inRange', 'intersectionBy', 'intersectionWith',
00109 'invokeArgs', 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth',
00110 'lastIndexOfFrom', 'mergeWith', 'orderBy', 'padChars', 'padCharsEnd',
00111 'padCharsStart', 'pullAllBy', 'pullAllWith', 'rangeStep', 'rangeStepRight',
00112 'reduce', 'reduceRight', 'replace', 'set', 'slice', 'sortedIndexBy',
00113 'sortedLastIndexBy', 'transform', 'unionBy', 'unionWith', 'update', 'xorBy',
00114 'xorWith', 'zipWith'
00115 ],
00116 '4': [
00117 'fill', 'setWith', 'updateWith'
00118 ]
00119 };
00120
00122 exports.aryRearg = {
00123 '2': [1, 0],
00124 '3': [2, 0, 1],
00125 '4': [3, 2, 0, 1]
00126 };
00127
00129 exports.iterateeAry = {
00130 'dropRightWhile': 1,
00131 'dropWhile': 1,
00132 'every': 1,
00133 'filter': 1,
00134 'find': 1,
00135 'findFrom': 1,
00136 'findIndex': 1,
00137 'findIndexFrom': 1,
00138 'findKey': 1,
00139 'findLast': 1,
00140 'findLastFrom': 1,
00141 'findLastIndex': 1,
00142 'findLastIndexFrom': 1,
00143 'findLastKey': 1,
00144 'flatMap': 1,
00145 'flatMapDeep': 1,
00146 'flatMapDepth': 1,
00147 'forEach': 1,
00148 'forEachRight': 1,
00149 'forIn': 1,
00150 'forInRight': 1,
00151 'forOwn': 1,
00152 'forOwnRight': 1,
00153 'map': 1,
00154 'mapKeys': 1,
00155 'mapValues': 1,
00156 'partition': 1,
00157 'reduce': 2,
00158 'reduceRight': 2,
00159 'reject': 1,
00160 'remove': 1,
00161 'some': 1,
00162 'takeRightWhile': 1,
00163 'takeWhile': 1,
00164 'times': 1,
00165 'transform': 2
00166 };
00167
00169 exports.iterateeRearg = {
00170 'mapKeys': [1],
00171 'reduceRight': [1, 0]
00172 };
00173
00175 exports.methodRearg = {
00176 'assignInAllWith': [1, 0],
00177 'assignInWith': [1, 2, 0],
00178 'assignAllWith': [1, 0],
00179 'assignWith': [1, 2, 0],
00180 'differenceBy': [1, 2, 0],
00181 'differenceWith': [1, 2, 0],
00182 'getOr': [2, 1, 0],
00183 'intersectionBy': [1, 2, 0],
00184 'intersectionWith': [1, 2, 0],
00185 'isEqualWith': [1, 2, 0],
00186 'isMatchWith': [2, 1, 0],
00187 'mergeAllWith': [1, 0],
00188 'mergeWith': [1, 2, 0],
00189 'padChars': [2, 1, 0],
00190 'padCharsEnd': [2, 1, 0],
00191 'padCharsStart': [2, 1, 0],
00192 'pullAllBy': [2, 1, 0],
00193 'pullAllWith': [2, 1, 0],
00194 'rangeStep': [1, 2, 0],
00195 'rangeStepRight': [1, 2, 0],
00196 'setWith': [3, 1, 2, 0],
00197 'sortedIndexBy': [2, 1, 0],
00198 'sortedLastIndexBy': [2, 1, 0],
00199 'unionBy': [1, 2, 0],
00200 'unionWith': [1, 2, 0],
00201 'updateWith': [3, 1, 2, 0],
00202 'xorBy': [1, 2, 0],
00203 'xorWith': [1, 2, 0],
00204 'zipWith': [1, 2, 0]
00205 };
00206
00208 exports.methodSpread = {
00209 'assignAll': { 'start': 0 },
00210 'assignAllWith': { 'start': 0 },
00211 'assignInAll': { 'start': 0 },
00212 'assignInAllWith': { 'start': 0 },
00213 'defaultsAll': { 'start': 0 },
00214 'defaultsDeepAll': { 'start': 0 },
00215 'invokeArgs': { 'start': 2 },
00216 'invokeArgsMap': { 'start': 2 },
00217 'mergeAll': { 'start': 0 },
00218 'mergeAllWith': { 'start': 0 },
00219 'partial': { 'start': 1 },
00220 'partialRight': { 'start': 1 },
00221 'without': { 'start': 1 },
00222 'zipAll': { 'start': 0 }
00223 };
00224
00226 exports.mutate = {
00227 'array': {
00228 'fill': true,
00229 'pull': true,
00230 'pullAll': true,
00231 'pullAllBy': true,
00232 'pullAllWith': true,
00233 'pullAt': true,
00234 'remove': true,
00235 'reverse': true
00236 },
00237 'object': {
00238 'assign': true,
00239 'assignAll': true,
00240 'assignAllWith': true,
00241 'assignIn': true,
00242 'assignInAll': true,
00243 'assignInAllWith': true,
00244 'assignInWith': true,
00245 'assignWith': true,
00246 'defaults': true,
00247 'defaultsAll': true,
00248 'defaultsDeep': true,
00249 'defaultsDeepAll': true,
00250 'merge': true,
00251 'mergeAll': true,
00252 'mergeAllWith': true,
00253 'mergeWith': true,
00254 },
00255 'set': {
00256 'set': true,
00257 'setWith': true,
00258 'unset': true,
00259 'update': true,
00260 'updateWith': true
00261 }
00262 };
00263
00265 exports.placeholder = {
00266 'bind': true,
00267 'bindKey': true,
00268 'curry': true,
00269 'curryRight': true,
00270 'partial': true,
00271 'partialRight': true
00272 };
00273
00275 exports.realToAlias = (function() {
00276 var hasOwnProperty = Object.prototype.hasOwnProperty,
00277 object = exports.aliasToReal,
00278 result = {};
00279
00280 for (var key in object) {
00281 var value = object[key];
00282 if (hasOwnProperty.call(result, value)) {
00283 result[value].push(key);
00284 } else {
00285 result[value] = [key];
00286 }
00287 }
00288 return result;
00289 }());
00290
00292 exports.remap = {
00293 'assignAll': 'assign',
00294 'assignAllWith': 'assignWith',
00295 'assignInAll': 'assignIn',
00296 'assignInAllWith': 'assignInWith',
00297 'curryN': 'curry',
00298 'curryRightN': 'curryRight',
00299 'defaultsAll': 'defaults',
00300 'defaultsDeepAll': 'defaultsDeep',
00301 'findFrom': 'find',
00302 'findIndexFrom': 'findIndex',
00303 'findLastFrom': 'findLast',
00304 'findLastIndexFrom': 'findLastIndex',
00305 'getOr': 'get',
00306 'includesFrom': 'includes',
00307 'indexOfFrom': 'indexOf',
00308 'invokeArgs': 'invoke',
00309 'invokeArgsMap': 'invokeMap',
00310 'lastIndexOfFrom': 'lastIndexOf',
00311 'mergeAll': 'merge',
00312 'mergeAllWith': 'mergeWith',
00313 'padChars': 'pad',
00314 'padCharsEnd': 'padEnd',
00315 'padCharsStart': 'padStart',
00316 'propertyOf': 'get',
00317 'rangeStep': 'range',
00318 'rangeStepRight': 'rangeRight',
00319 'restFrom': 'rest',
00320 'spreadFrom': 'spread',
00321 'trimChars': 'trim',
00322 'trimCharsEnd': 'trimEnd',
00323 'trimCharsStart': 'trimStart',
00324 'zipAll': 'zip'
00325 };
00326
00328 exports.skipFixed = {
00329 'castArray': true,
00330 'flow': true,
00331 'flowRight': true,
00332 'iteratee': true,
00333 'mixin': true,
00334 'rearg': true,
00335 'runInContext': true
00336 };
00337
00339 exports.skipRearg = {
00340 'add': true,
00341 'assign': true,
00342 'assignIn': true,
00343 'bind': true,
00344 'bindKey': true,
00345 'concat': true,
00346 'difference': true,
00347 'divide': true,
00348 'eq': true,
00349 'gt': true,
00350 'gte': true,
00351 'isEqual': true,
00352 'lt': true,
00353 'lte': true,
00354 'matchesProperty': true,
00355 'merge': true,
00356 'multiply': true,
00357 'overArgs': true,
00358 'partial': true,
00359 'partialRight': true,
00360 'propertyOf': true,
00361 'random': true,
00362 'range': true,
00363 'rangeRight': true,
00364 'subtract': true,
00365 'zip': true,
00366 'zipObject': true,
00367 'zipObjectDeep': true
00368 };