mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Reclassify _.conj and _.disj to the Utility category.
This commit is contained in:
96
lodash.js
96
lodash.js
@@ -7814,30 +7814,6 @@
|
||||
return createWrapper(key, bitmask, object, partials, holders);
|
||||
});
|
||||
|
||||
/**
|
||||
* Creates a function that checks if **all** of the `predicates` return
|
||||
* truthy when invoked with the arguments provided to the created function.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Function
|
||||
* @param {Function[]} predicates The predicates to check.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
* var conjed = _.conj(Boolean, isFinite);
|
||||
*
|
||||
* conjed('1');
|
||||
* // => true
|
||||
*
|
||||
* conjed(null);
|
||||
* // => false
|
||||
*
|
||||
* conjed(NaN);
|
||||
* // => false
|
||||
*/
|
||||
var conj = createInvoker(arrayEvery);
|
||||
|
||||
/**
|
||||
* Creates a function that accepts one or more arguments of `func` that when
|
||||
* called either invokes `func` returning its result, if all `func` arguments
|
||||
@@ -8150,30 +8126,6 @@
|
||||
return baseDelay(func, wait, args);
|
||||
});
|
||||
|
||||
/**
|
||||
* Creates a function that checks if **any** of the `predicates` return
|
||||
* truthy when invoked with the arguments provided to the created function.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Function
|
||||
* @param {Function[]} predicates The predicates to check.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
* var disjed = _.disj(Boolean, isFinite);
|
||||
*
|
||||
* disjed('1');
|
||||
* // => true
|
||||
*
|
||||
* disjed(null);
|
||||
* // => true
|
||||
*
|
||||
* disjed(NaN);
|
||||
* // => false
|
||||
*/
|
||||
var disj = createInvoker(arraySome);
|
||||
|
||||
/**
|
||||
* Creates a function that invokes `func` with arguments reversed.
|
||||
*
|
||||
@@ -12203,6 +12155,30 @@
|
||||
return baseConforms(baseClone(source, true));
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a function that checks if **all** of the `predicates` return
|
||||
* truthy when invoked with the arguments provided to the created function.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Utility
|
||||
* @param {...(Function|Function[])} predicates The predicates to check.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
* var conjed = _.conj(Boolean, isFinite);
|
||||
*
|
||||
* conjed('1');
|
||||
* // => true
|
||||
*
|
||||
* conjed(null);
|
||||
* // => false
|
||||
*
|
||||
* conjed(NaN);
|
||||
* // => false
|
||||
*/
|
||||
var conj = createInvoker(arrayEvery);
|
||||
|
||||
/**
|
||||
* Creates a function that returns `value`.
|
||||
*
|
||||
@@ -12225,6 +12201,30 @@
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a function that checks if **any** of the `predicates` return
|
||||
* truthy when invoked with the arguments provided to the created function.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Utility
|
||||
* @param {...(Function|Function[])} predicates The predicates to check.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
* var disjed = _.disj(Boolean, isFinite);
|
||||
*
|
||||
* disjed('1');
|
||||
* // => true
|
||||
*
|
||||
* disjed(null);
|
||||
* // => true
|
||||
*
|
||||
* disjed(NaN);
|
||||
* // => false
|
||||
*/
|
||||
var disj = createInvoker(arraySome);
|
||||
|
||||
/**
|
||||
* This method returns the first argument provided to it.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user