You are viewing a single comment's thread. Return to all comments →
function aVeryBigSum(ar) { let total = 0; for(let item of ar){ if(Array.isArray(item)) total += aVeryBigSum(item); total += item; } return total; }
Seems like cookies are disabled on this browser, please enable them to open this website
A Very Big Sum
You are viewing a single comment's thread. Return to all comments →