5 lines
84 B
Plaintext
5 lines
84 B
Plaintext
```javascript
|
|
function sum(arr) {
|
|
return arr.reduce((a, b) => a + b, 0);
|
|
}
|
|
``` |