Array.prototype.flatten1=function(){return this.reduce(function(a,b){return a.concat(b)},[])}; var m = ; for(i=0;i