Fix spread doc and remove unused thisArg.

This commit is contained in:
jdalton
2015-02-12 01:59:16 -08:00
parent 5d4ba820dd
commit 10ee3585f6

View File

@@ -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);
} }