Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Array.prototype.splice() i think op does know about this, but does it compare to python's remove or list comprehension? Ño
We do have map and filter in JS though if you don't mind using a lil bit of extra power in your app.
Still messy but I love JS so fuck it -
EliaP746yYes I know about splice, filter and all that. What I meant to say is that it shouldn't be so "difficult", it should be a simple array.remove(value).
Related Rants
I can't believe that a modern language like JS is still lacking basic utilities like removing something from an array by value
rant
javascript