/ Published in: JavaScript
Expand |
Embed | Plain Text
function foo(a, b) { a = typeof(a) != 'undefined' ? a : 42; b = typeof(b) != 'undefined' ? b : 'default_b'; //... }
You need to login to post a comment.
function foo(a, b) { a = typeof(a) != 'undefined' ? a : 42; b = typeof(b) != 'undefined' ? b : 'default_b'; //... }
You need to login to post a comment.