JavaScript Array Splice() Method: Adding and Removing Elements Made Easy.
The other day I was working with an array and I wanted to remove an element from the array based on an id.
To remove any vagueness I was working on a shopping cart and I needed to make the remove item button functional.
Here is a snippet of the code ...
immanuelsoetan.hashnode.dev5 min read