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

Function flatMapDeep

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

* This method is like `_.flatMap` except that it recursively flattens the * mapped results. * * @static * @memberOf _ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.ident

(collection, iteratee)

Source from the content-addressed store, hash-verified

16911 * // => [1, 1, 2, 2]
16912 */
16913 function flatMapDeep(collection, iteratee) {
16914 return baseFlatten(map(collection, iteratee), INFINITY);
16915 }
16916
16917 /**
16918 * This method is like `_.flatMap` except that it recursively flattens the

Callers

nothing calls this directly

Calls 2

baseFlattenFunction · 0.85
mapFunction · 0.85

Tested by

no test coverage detected