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)