From 4c12319d19639403cbc9ca737d5c79a3fbb5b4a5 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 23 Oct 2015 23:04:12 -0700 Subject: [PATCH] Reclassify `_.conj` and `_.disj` to the Utility category. --- lodash.js | 96 +++++++++++++++++++++++++++---------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/lodash.js b/lodash.js index 9b5faf7b3..d32ab9a57 100644 --- a/lodash.js +++ b/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. *