DEV Community

Discussion on: Remove A Specific Element From An Array In Javascript

Collapse
 
miketalbot profile image
Mike Talbot ⭐

I'd just point out that if you were trying to remove elements from an array that were infrequently found or unique then your performance test isn't reflective of what would happen with splice versus filter.

This performance test shows that difference.

Collapse
 
newbiebr profile image
Arthur Dao

Nice thanks for pointing that out!!!