0
[arr[i], arr[j]] = [arr[j], arr[i]]

I get what this is doing but what is it called?

S.W.
  • 67
  • 6
  • 9
    [Destructuring Assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment)? – Hao Wu Dec 03 '20 at 10:01

0 Answers0