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
-
arantr22128yAnd the solution is:
element.textContent.trim().replace(/\u00a0/g, " ")
Fuck, I'm out of here -
Seethe4608yHis is when testing strings for exact content can be more trouble than it's worth. If I need to test stings in my unit tests I'll usually define a range in regex.
-
webpencil198yReference error, look up equality in javascript. May not be the same object... Using == or ===?
Related Rants
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28Found this in our codebase, apparently one of my co-workers had written this
-
linuxxx23*client calls* "hello, we forgot the password to our WiFi router. Could you reset that for us?" 😐😶😮...
Seriously, what is going on here?
undefined
wtf
mocha
halp