mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Fix spread doc and remove unused thisArg.
This commit is contained in:
@@ -7815,7 +7815,7 @@
|
|||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Function
|
* @category Function
|
||||||
* @param {Function} The function to spread arguments over.
|
* @param {Function} func The function to spread arguments over.
|
||||||
* @returns {*} Returns the new function.
|
* @returns {*} Returns the new function.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
@@ -7839,7 +7839,7 @@
|
|||||||
* numbers.then(_.spread(add));
|
* numbers.then(_.spread(add));
|
||||||
* // => a Promise of 76
|
* // => a Promise of 76
|
||||||
*/
|
*/
|
||||||
function spread(func, thisArg) {
|
function spread(func) {
|
||||||
if (typeof func != 'function') {
|
if (typeof func != 'function') {
|
||||||
throw new TypeError(FUNC_ERROR_TEXT);
|
throw new TypeError(FUNC_ERROR_TEXT);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user