DEV Community

Cover image for 🧠 Remove a specific item from an array
Ali Boukaroui
Ali Boukaroui

Posted on

🧠 Remove a specific item from an array

✅ Find the index of the array element you want to remove using indexOf, and then remove that index with splice.

For more useful content, please follow me on @aliboukaroui

Top comments (0)