@revtm/tukar
v2.0.3
Published
Switch array values
Downloads
5
Readme
Js function to switch two values of index 0 and 1 in an 1-D array!
How To:
var {changePos} = require("@revtm/tukar");
var x = [1,2];
var y = changePos(x);
console.log(y); //[2,1]