Re:Using Dispatch Tables to Avoid Conditionals in JavaScript
by johnnymonster on Monday May 13, 2013 @09:58AM
(#5698645)
This example is great to point out that javascript is a dynamic language and should be used as such whenever possible. obviously he only used a handful of options and maybe a switch would work better for this exact example, but it should get the reader thinking about where else this type of pattern could be used.
[ Parent
| on HN ]
There are no comments on this comment yet.