* 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)
| 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. |
nothing calls this directly
no test coverage detected