Removed swap
This commit is contained in:
@ -1,8 +0,0 @@
|
||||
### Swap values of two variables
|
||||
|
||||
Use array destructuring to swap values between two variables.
|
||||
|
||||
```js
|
||||
[varA, varB] = [varB, varA];
|
||||
// [x, y] = [y, x]
|
||||
```
|
||||
Reference in New Issue
Block a user