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

x/polkadot/util/array/flatten.ts>arrayFlatten

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

Examples

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

arrayFlatten([[1, 2], [3, 4], [5]]); // [1, 2, 3, 4, 5]

Parameters

arrays: readonly T[][]