Added the underscore node_module.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
This commit is contained in:
27
node_modules/underscore/amd/range.js
generated
vendored
Normal file
27
node_modules/underscore/amd/range.js
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
define(function () {
|
||||
|
||||
// Generate an integer Array containing an arithmetic progression. A port of
|
||||
// the native Python `range()` function. See
|
||||
// [the Python documentation](https://docs.python.org/library/functions.html#range).
|
||||
function range(start, stop, step) {
|
||||
if (stop == null) {
|
||||
stop = start || 0;
|
||||
start = 0;
|
||||
}
|
||||
if (!step) {
|
||||
step = stop < start ? -1 : 1;
|
||||
}
|
||||
|
||||
var length = Math.max(Math.ceil((stop - start) / step), 0);
|
||||
var range = Array(length);
|
||||
|
||||
for (var idx = 0; idx < length; idx++, start += step) {
|
||||
range[idx] = start;
|
||||
}
|
||||
|
||||
return range;
|
||||
}
|
||||
|
||||
return range;
|
||||
|
||||
});
|
Reference in New Issue
Block a user