*args python javascript equivalent

JavaScript
//spread operator
a = [1, 2, 3]

function printArgs(args) {
	console.log(...args)
}

printArgs(a)
//=> 1 2 3
Source

Also in JavaScript: