Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/flatten.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.