function flattenDepthimport { flattenDepth } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/array.js"; flattenDepth(array, depth)Recursively flatten array up to depth times. Examplesvar array = [1, [2, [3, [4]], 5]]; _.flattenDepth(array, 1); // => [1, 2, [3, [4]], 5] _.flattenDepth(array, 2); // => [1, 2, 3, [4], 5] ParametersarrayThe array to flatten. depth