mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-22 19:59:26 +08:00
08d466b6ab
Co-authored-by: Oliver King <oking3@uncc.edu>
12 lines
310 B
JavaScript
12 lines
310 B
JavaScript
define(['./_flatten'], function (_flatten) {
|
|
|
|
// 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);
|
|
}
|
|
|
|
return flatten;
|
|
|
|
});
|