Re:Default Parameters in JavaScript
by noonat on Tuesday March 19, 2013 @11:49AM
(#5401582)
If you want to allow undefined to be passed as a valid non-default value for a trailing parameter, you can also use arguments.length to determine how many arguments were explicitly specified.
[ Parent
| on HN ]