jskatas.org Continuously Learn JavaScript. Your Way.

Rest operator: with destructuring

Use the rest operator with destructuring.

Donate to NGO Julenka. Support Ukranians in need. Julenka is an NGO which my brother founded in 2011 to support Ukranian families and kids in need.

Rest parameters with destructuring

  • must be last
  • assign rest of an array to a variable
  • concat differently
  • apply made simple, even for constructors