import { arrayChunk } from "https://deno.land/x/polkadot@0.2.17/util/index.ts";
Examples
import { arrayChunk } from 'https://deno.land/x/polkadot@0.2.17/util/mod.ts';
arrayChunk([1, 2, 3, 4, 5]); // [[1, 2], [3, 4], [5]]
Parameters
array: T[]
import { arrayChunk } from "https://deno.land/x/polkadot@0.2.17/util/index.ts";
import { arrayChunk } from 'https://deno.land/x/polkadot@0.2.17/util/mod.ts';
arrayChunk([1, 2, 3, 4, 5]); // [[1, 2], [3, 4], [5]]