Author: Not specified Language: javascript
Description: Not specified Timestamp: 2018-05-04 09:41:55 +0000
View raw paste Reply
Array.prototype.magic = function(){
  return this.reduce(function(a,b){
      return a.map(function(x){
          return b.map(function(y){
              return x.concat(y);
          })
      }).reduce(function(a,b){ return a.concat(b) },[])
  }, [[]])
};
View raw paste Reply