Hacker News new | ask | show | jobs
by jwarkentin 4382 days ago
It's not necessarily "advanced", but it is unexpected behavior I think. I've run into this same sort of issue myself. It didn't take ages to figure out, but it was annoying. It's one of those things that separates an experienced JavaScript dev from the rest.
1 comments

    "You could stare at that function for hours without seeing 
    the problem. It requires knowledge of how JavaScript’s
    String.replace() works:"
Okay, but "knowledge of how JavaScript's String.replace() works" is showing that the experience of those guys is not the greatest. I'm pretty sure every decent JS developer knows this after a short amount of time, because "String.replace" is used pretty often.