mirror of
https://github.com/Azure/setup-helm.git
synced 2026-07-06 08:21:37 +00:00
a517f2ff65
Co-authored-by: taakleton <taakleton@users.noreply.github.com>
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;
|
|
|
|
});
|