function removeArray(x, n){ for(var i = 0; i < x.length; i++){ x = x.remove(n); } return x; } console.log(removeArray([20,11,12,13,14], 1));
function removeArray(x, n){ x.splice(n, 1); return x; } console.log(removeArray([20,11,12,13,14], 1));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)