mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Bump to v3.4.0.
This commit is contained in:
@@ -21,14 +21,14 @@ import isError from '../lang/isError';
|
||||
* }
|
||||
*/
|
||||
function attempt() {
|
||||
var length = arguments.length,
|
||||
func = arguments[0];
|
||||
var func = arguments[0],
|
||||
length = arguments.length,
|
||||
args = Array(length ? length - 1 : 0);
|
||||
|
||||
while (--length > 0) {
|
||||
args[length - 1] = arguments[length];
|
||||
}
|
||||
try {
|
||||
var args = Array(length ? length - 1 : 0);
|
||||
while (--length > 0) {
|
||||
args[length - 1] = arguments[length];
|
||||
}
|
||||
return func.apply(undefined, args);
|
||||
} catch(e) {
|
||||
return isError(e) ? e : new Error(e);
|
||||
|
||||
@@ -8,9 +8,9 @@ var nativeMax = Math.max;
|
||||
|
||||
/**
|
||||
* Creates an array of numbers (positive and/or negative) progressing from
|
||||
* `start` up to, but not including, `end`. If `end` is not specified it
|
||||
* defaults to `start` with `start` becoming `0`. If `start` is less than
|
||||
* `end` a zero-length range is created unless a negative `step` is specified.
|
||||
* `start` up to, but not including, `end`. If `end` is not specified it is
|
||||
* set to `start` with `start` then set to `0`. If `start` is less than `end`
|
||||
* a zero-length range is created unless a negative `step` is specified.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
Reference in New Issue
Block a user