JSchallenger

Merge an arbitrary number of arrays

Viewed: 999
Attempted: 1278
Solved: 260
// Write a function that takes arguments an arbitrary number of arrays
// It should return an array containing the values of all arrays

function myFunction() {

return
}
Test Cases:
myFunction([1, 2, 3], [4, 5, 6])
Expected
[1, 2, 3, 4, 5, 6]
myFunction(['a', 'b', 'c'], [4, 5, 6])
Expected
['a', 'b', 'c', 4, 5, 6]
myFunction([true, true], [1, 2], ['a', 'b'])
Expected
[true, true, 1, 2, 'a', 'b']