Re:Using Dispatch Tables to Avoid Conditionals in JavaScript
by recuter on Monday May 13, 2013 @09:26AM
(#5698481)
This is an excellent tip and makes one wonder why it isn't more commonly seen in the wild.
[ Parent
| on HN ]
Re:Using Dispatch Tables to Avoid Conditionals in JavaScript
by seanalltogether on Monday May 13, 2013 @09:33AM
(#5698515)
I'm guessing its just not a common thing to have a large definition of single line if statements, I'm not sure about other programmers but I don't think I could find much of this in my code.