@newdash/newdash
Version:
javascript/typescript utility library
13 lines (12 loc) • 565 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const baseFlatten_1 = __importDefault(require("./.internal/baseFlatten"));
const map_1 = __importDefault(require("./map"));
function flatMapDepth(collection, iteratee, depth = 1) {
depth = depth === undefined ? 1 : +depth;
return (0, baseFlatten_1.default)((0, map_1.default)(collection, iteratee), depth);
}
exports.default = flatMapDepth;