import { type RangeArgs } from "https://deno.land/x/better_iterators@v1.5.0/mod.ts";
Properties
default: false
Like ranges in many other languages, a range by default includes its
start, but not its end. If true
, this will cause the range to include
its end.
import { range } from "./mod.ts"
// [1, 2]:
console.log(range({from: 1, to: 3}))
// [1, 2, 3]:
console.log(range({from: 1, to: 3, inclusive: true}))