Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util/array/range.ts>arrayRange

Package publishing for deno.land/x/polkadot
Go to Latest
function arrayRange
import { arrayRange } from "https://deno.land/x/polkadot@0.2.17/util/array/range.ts";

Examples

import { arrayRange } from 'https://deno.land/x/polkadot@0.2.17/util/mod.ts';

arrayRange(5); // [0, 1, 2, 3, 4]
arrayRange(3, 5); // [5, 6, 7]

Parameters

size: number
optional
startAt = [UNSUPPORTED]

Returns

number[]