mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Add conj, disj, and juxt to aryMethodMap.
This commit is contained in:
@@ -75,9 +75,9 @@ module.exports = {
|
||||
/** Used to map ary to method names. */
|
||||
'aryMethodMap': {
|
||||
1: (
|
||||
'attempt,ceil,create,curry,floor,fromPairs,iteratee,invert,memoize,method,' +
|
||||
'methodOf,mixin,rest,reverse,round,runInContext,template,trim,trimLeft,' +
|
||||
'trimRight,uniqueId,words').split(','),
|
||||
'attempt,ceil,conj,create,curry,disj,floor,fromPairs,iteratee,invert,juxt,' +
|
||||
'memoize,method,methodOf,mixin,rest,reverse,round,runInContext,template,trim,' +
|
||||
'trimLeft,trimRight,uniqueId,words').split(','),
|
||||
2: (
|
||||
'ary,assign,at,bind,bindKey,cloneDeepWith,cloneWith,countBy,curryN,debounce,' +
|
||||
'defaults,defaultsDeep,delay,difference,drop,dropRight,dropRightWhile,' +
|
||||
|
||||
@@ -37,11 +37,11 @@ QUnit.module('method aliases');
|
||||
var actual = _.transform(mapping.aliasMap, function(result, aliases, methodName) {
|
||||
var func = fp[methodName];
|
||||
_.each(aliases, function(alias) {
|
||||
result.push(fp[alias] === func);
|
||||
result.push([alias, fp[alias] === func]);
|
||||
});
|
||||
}, []);
|
||||
|
||||
assert.ok(_.every(actual));
|
||||
assert.deepEqual(_.reject(actual, 1), []);
|
||||
});
|
||||
}());
|
||||
|
||||
@@ -54,8 +54,8 @@ QUnit.module('method ary caps');
|
||||
assert.expect(1);
|
||||
|
||||
var funcMethods = [
|
||||
'curry', 'iteratee', 'memoize', 'method', 'methodOf',
|
||||
'restParam', 'runInContext'
|
||||
'conj', 'curry', 'disj', 'iteratee', 'juxt', 'memoize',
|
||||
'method', 'methodOf', 'restParam', 'runInContext'
|
||||
];
|
||||
|
||||
var exceptions = funcMethods.concat('mixin', 'template'),
|
||||
|
||||
Reference in New Issue
Block a user