News for hackers. Stuff that matters.
Re:Args.js – Optional and Default parameters for JavaScript by elclanrs on Monday January 13, 2014 @12:09PM (#7051840)
I'd use:

  bar = bar != null ? bar : 'default';

There are no comments on this comment yet.