Note how this is different from passing the entire array as the first argument. Compare these two different ways of calling
fun() in Ruby:
# Ruby array = [1, 2, 3] fun(array) # same as fun([1, 2, 3]) (1 argument) fun(*array) # same as fun(1, 2, 3) (3 arguments)
Depending on your culture the spreading of array elements into multiple argument slots is called "splat args" or "varargs" or "spread args" or "rest operator".
This is supported by all current browsers, but not IE 11. If you need to support IE11 you need a.
var array = [1, 2, 3] console.log.apply(console, array)
Your development team has a full backlog of feature requests, chores and refactoring coupled with deadlines? We are familiar with that. With our "DevOps as a Service" offering, we support developer teams with infrastructure and operations expertise.