Find the index of the array element you want to remove, then remove that index with splice.
The splice() method changes the contents of an array by removing existing elements and/or adding new elements.
See the Pen How do I remove a particular element from an array in JavaScript? by satish mallick (@satishmallick)
No comments:
Post a Comment