Is there a better way to do optional function parameters in JavaScript?

Published --