Module

x/lodash_es/src/array.js>flatten

lodash for deno use
Latest
function flatten
import { flatten } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/array.js";

Flattens array a single level deep.

Examples

_.flatten([1, [2, [3, [4]], 5]]); // => [1, 2, [3, [4]], 5]

Parameters

array

The array to flatten.