import { range } from "https://deno.land/x/ayonli_jsext@v0.9.72/number/index.ts";
Generates a sequence of numbers from min
to max
(inclusive).
Examples
Example 1
Example 1
import { range } from "@ayonli/jsext/number";
for (const i of range(1, 5)) {
console.log(i);
}
// output:
// 1
// 2
// 3
// 4
// 5