easyJS ES6+#68

Spread and rest operators

Prompt

Write a function mergeAndSum that takes any number of arrays (rest param), flattens them (spread) and returns the sum of all numbers.

Hints

Solution

Your Code

5 min

Tests

Click Run to test your code