/scratch/workspace/artdaq-demo-v2_10_00/SLF6/s46-e14-debug/build/artdaq_node_server/v1_00_08/src/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash/flattenDepth.js
var array = [1, [2, [3, [4]], 5]];
_.flattenDepth(array, 1); // => [1, 2, [3, [4]], 5]
_.flattenDepth(array, 2); // => [1, 2, 3, [4], 5]