Skip to main content
Module

x/lodash_es/mod.ts>flatMapDeep

lodash for deno use
Latest
function flatMapDeep
import { flatMapDeep } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

This method is like _.flatMap except that it recursively flattens the mapped results.

Examples

function duplicate(n) { return [[[n, n]]]; }

_.flatMapDeep([1, 2], duplicate); // => [1, 1, 2, 2]

Parameters

collection

The collection to iterate over.

iteratee