Remove an Item From an Array with JavaScript
The JavaScript splice method allows for easy item removal from JavaScript arrays. ... It’s important to note that splicing an array is an incredibly slow operation and is very difficult or impossible for engines to optimize....