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

x/polkadot/util/index.ts>arrayRange

Package publishing for deno.land/x/polkadot
Latest
function arrayRange
import { arrayRange } from "https://deno.land/x/polkadot@0.2.45/util/index.ts";

Examples

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

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

Parameters

size: number
optional
startAt = [UNSUPPORTED]

Returns

number[]