var array = JSON.parse("[" + s + "]"); return array.reduce(function(x,y){ return x*10+y; });
Sign in to make a reply
NotFatCat