Default parameters in javscript function declerations can be achieved with a simple assignment as follows:
function foo(arg1 = 'default1', arg2 = 'default2') { ... }
But how can I have default parameters for function expressions, as the following does NOT work in chrome v47:
var foo = function (arg1 = 'default1', arg2 = 'default2') { ... }
Any pointers would be helpful.