News for hackers. Stuff that matters.
Re:Using Dispatch Tables to Avoid Conditionals in JavaScript by k3n on Monday May 13, 2013 @12:50PM (#5699755)
Because modifying object prototypes is the way to go?
Re:Using Dispatch Tables to Avoid Conditionals in JavaScript by taf2 on Tuesday May 14, 2013 @03:11AM (#5703394)
Depends if you're in an environment you control then yes - when embedding your scripts, don't do it. Create your own isolated functions and assume anything and everything can be broken e.g. Array.prototype is often modified with broken or semi incomplete functions like broken versions of indexOf