Reclassify _.conj and _.disj to the Utility category.

This commit is contained in:
John-David Dalton
2015-10-23 23:04:12 -07:00
parent 3769719816
commit 4c12319d19

View File

@@ -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.
*