function simpleArraySum(ar) {
/*
* Write your code here.
*/
return ar.reduce((a, b) => a + b);
}
Simple Array Sum
October 31, 2019 • ☕️ 1 min read
algorithm/hackerrank
October 31, 2019 • ☕️ 1 min read
algorithm/hackerrank
function simpleArraySum(ar) {
/*
* Write your code here.
*/
return ar.reduce((a, b) => a + b);
}