Discuss / JavaScript / Answer

Answer

Topic source

NotFatCat

#1 Created at ... [Delete] [Delete and Lock User]
var array = JSON.parse("[" + s + "]");
return array.reduce(function(x,y){
   return x*10+y;
});

  • 1

Reply