mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +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. */
|
/** Used to map ary to method names. */
|
||||||
'aryMethodMap': {
|
'aryMethodMap': {
|
||||||
1: (
|
1: (
|
||||||
'attempt,ceil,create,curry,floor,fromPairs,iteratee,invert,memoize,method,' +
|
'attempt,ceil,conj,create,curry,disj,floor,fromPairs,iteratee,invert,juxt,' +
|
||||||
'methodOf,mixin,rest,reverse,round,runInContext,template,trim,trimLeft,' +
|
'memoize,method,methodOf,mixin,rest,reverse,round,runInContext,template,trim,' +
|
||||||
'trimRight,uniqueId,words').split(','),
|
'trimLeft,trimRight,uniqueId,words').split(','),
|
||||||
2: (
|
2: (
|
||||||
'ary,assign,at,bind,bindKey,cloneDeepWith,cloneWith,countBy,curryN,debounce,' +
|
'ary,assign,at,bind,bindKey,cloneDeepWith,cloneWith,countBy,curryN,debounce,' +
|
||||||
'defaults,defaultsDeep,delay,difference,drop,dropRight,dropRightWhile,' +
|
'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 actual = _.transform(mapping.aliasMap, function(result, aliases, methodName) {
|
||||||
var func = fp[methodName];
|
var func = fp[methodName];
|
||||||
_.each(aliases, function(alias) {
|
_.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);
|
assert.expect(1);
|
||||||
|
|
||||||
var funcMethods = [
|
var funcMethods = [
|
||||||
'curry', 'iteratee', 'memoize', 'method', 'methodOf',
|
'conj', 'curry', 'disj', 'iteratee', 'juxt', 'memoize',
|
||||||
'restParam', 'runInContext'
|
'method', 'methodOf', 'restParam', 'runInContext'
|
||||||
];
|
];
|
||||||
|
|
||||||
var exceptions = funcMethods.concat('mixin', 'template'),
|
var exceptions = funcMethods.concat('mixin', 'template'),
|
||||||
|
|||||||
Reference in New Issue
Block a user