swapvar
v1.0.2
Published
Library to swap variables value
Downloads
3
Readme
swapvar module
swap 2 variable values
No dependencies needed
installation process
npm install swapvar
const swap = require('swapvar');- Switch the values of 2 variables
let playerX = 50;
let playerY = 70;
[playerX, playerY] = swap(playerX, playerY);