00001 var baseFlatten = require('./_baseFlatten'),
00002 map = require('./map'),
00003 toInteger = require('./toInteger');
00004
00026 function flatMapDepth(collection, iteratee, depth) {
00027 depth = depth === undefined ? 1 : toInteger(depth);
00028 return baseFlatten(map(collection, iteratee), depth);
00029 }
00030
00031 module.exports = flatMapDepth;