News for hackers. Stuff that matters.
Re:Using Dispatch Tables to Avoid Conditionals in JavaScript by robmcm on Monday May 13, 2013 @12:17PM (#5699537)
The switch statement offers the ability to provide a default opperation, such as tell the user the command was not found.

You could add an undefined property check on the dispatch table, but then you have as much and more complex code IMO.

There are no comments on this comment yet.