Remove an element of arary by the give the index.
let data = ["Home", "About", "Menu"];
data.splice(2, 1);
console.log(data); // ["Home", "About"]
Cheatsheet collection for go, rust, python, shell and javascript.
Remove an element of arary by the give the index.
let data = ["Home", "About", "Menu"];
data.splice(2, 1);
console.log(data); // ["Home", "About"]