/scratch/workspace/artdaq_demo-release-build/SLF6/s47-e14-prof/build/artdaq_node_server/v1_00_09/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]