JSchallenger

Merge an arbitrary number of arrays

Viewed: 239
Attempted: 191
Solved: 44
// 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']