2.0.3 • Published 2 years ago
@revtm/tukar v2.0.3
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]
Js function to switch two values of index 0 and 1 in an 1-D array!
var {changePos} = require("@revtm/tukar");
var x = [1,2];
var y = changePos(x);
console.log(y); //[2,1]