@qvant/qui-max
Version:
A Vue 3 Design system for Web.
12 lines (11 loc) • 391 B
JavaScript
var nativeCeil = Math.ceil, nativeMax = Math.max;
function baseRange(start, end, step, fromRight) {
var index = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result = Array(length);
while (length--) {
result[fromRight ? length : ++index] = start;
start += step;
}
return result;
}
export { baseRange as default };
//# sourceMappingURL=_baseRange.js.map