SyntaxFix
Write A Post
Hire A Developer
Questions
It seems to me, that for current javascript implementations,
var [result='default']=[possiblyUndefinedValue]
is a nice way to do this (using object deconstruction).