What does the spread operator `…` do when used with an array?

JavaScript Associate Easy

JavaScript Associate — Easy

What does the spread operator `…` do when used with an array?

Key points

  • The spread operator does not create a deep copy of the array
  • It does not merge two arrays using their union
  • It does not convert an array to a JSON string

Ready to go further?

Related questions