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
- 
				
				 EliaP737yYes 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). EliaP737yYes 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






 when your code is a mess but everything work out in the end
when your code is a mess but everything work out in the end
 When you keep getting +1s on a rant you posted a month ago.
When you keep getting +1s on a rant you posted a month ago.
 Go big or go home.
Go big or go home.
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