Latest
function flatMapDeep
import { flatMapDeep } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/collection.js";

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