4
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2025-11-08 13:36:56 +00:00
setup-helm/node_modules/underscore/modules/flatten.js

7 lines
284 B
JavaScript

import _flatten from './_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.
export default function flatten(array, depth) {
return _flatten(array, depth, false);
}