var arr =[1,3,5,6,3]; var result = _.toArray(_.groupBy(arr, function(num, index){ return Math.floor(index/2);}));