MCPcopy
hub / github.com/Kong/insomnia / flatMapDepth

Function flatMapDepth

packages/insomnia/bin/yarn-standalone.js:16938–16941  ·  view source on GitHub ↗

* This method is like `_.flatMap` except that it recursively flattens the * mapped results up to `depth` times. * * @static * @memberOf _ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Functio

(collection, iteratee, depth)

Source from the content-addressed store, hash-verified

16936 * // => [[1, 1], [2, 2]]
16937 */
16938 function flatMapDepth(collection, iteratee, depth) {
16939 depth = depth === undefined ? 1 : toInteger(depth);
16940 return baseFlatten(map(collection, iteratee), depth);
16941 }
16942
16943 /**
16944 * Iterates over elements of `collection` and invokes `iteratee` for each element.

Callers

nothing calls this directly

Calls 3

toIntegerFunction · 0.85
baseFlattenFunction · 0.85
mapFunction · 0.85

Tested by

no test coverage detected