function get1DArray(arr1:any){ var arr2 = arr1.reduce(function (a:any, b:any) { return a.concat(b) }); return arr2; }