You are viewing a single comment's thread. Return to all comments →
Just a small note. You can skip the last param for reduce():
function aVeryBigSum(ar) { return ar.reduce((acc, cur) => acc + cur); }
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 →
Just a small note. You can skip the last param for reduce():