setup-maven-cached/node_modules/underscore/cjs/flatten.js

10 lines
299 B
JavaScript
Raw Normal View History

2022-06-28 16:39:30 +08:00
var _flatten = require('./_flatten.js');
// Flatten out an array, either recursively (by default), or up to `depth`.
// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.
function flatten(array, depth) {
return _flatten(array, depth, false);
}
module.exports = flatten;