It's only terrible if you care about performance. If you do the operation a single time in response to a user clicking a button, who cares if it takes 0.01s longer to complete?
It's a bit more readable than the faster filter method, and that by itself has some value.
20
u/slowthedataleak May 14 '21
Does this perform better than filter()?