_.flatMapDepth(创建同阶数组)
_.flatMapDepth(collection, [iteratee=_.identity], [depth=1])function duplicate(n) {
return [[[n, n]]];
}
_.flatMapDepth([1, 2], duplicate, 2);
// => [[1, 1], [2, 2]]Last updated
_.flatMapDepth(collection, [iteratee=_.identity], [depth=1])function duplicate(n) {
return [[[n, n]]];
}
_.flatMapDepth([1, 2], duplicate, 2);
// => [[1, 1], [2, 2]]Last updated