mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-21 10:39:26 +08:00
a0f00e5017
Co-authored-by: OliverMKing <OliverMKing@users.noreply.github.com>
10 lines
299 B
JavaScript
10 lines
299 B
JavaScript
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;
|