O'Reilly logo
  • Ray Megal thinks this is interesting:

console.log(myFunc(...values)); // Prints 9

From

Cover of Learning Node.js for .NET Developers

Note

Should be:

console.log(myFunc(...myArray)); // Prints 9