12345678910111213141516171819202122232425262728293031 |
- var baseFlatten = require('./_baseFlatten'),
- map = require('./map'),
- toInteger = require('./toInteger');
- function flatMapDepth(collection, iteratee, depth) {
- depth = depth === undefined ? 1 : toInteger(depth);
- return baseFlatten(map(collection, iteratee), depth);
- }
- module.exports = flatMapDepth;
|