Let’s say we have an array and we need to swap to values. I am pretty sure that there are a lot of different solutions for this, but because here we have ES6, we can use array destructuring.