This commit is contained in:
Your Name
2026-08-11 17:41:36 +08:00
parent cfe4c82c90
commit 03fe4ddf9d
18771 changed files with 3617239 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
exports = function(start, end, step) {
if (end == null) {
end = start || 0;
start = 0;
}
if (!step) step = end < start ? -1 : 1;
var len = Math.max(Math.ceil((end - start) / step), 0);
var ret = Array(len);
for (var i = 0; i < len; i++, start += step) ret[i] = start;
return ret;
};
module.exports = exports;