A basic function:
function myStuff(a,b,c){
var _c = _c || c || {};
console.log(_c);
}
The idea is to use a cached value if used before, or a new value if new/different.
The question is: if the function invoke does not include the third property why the console.log(_c)
shows undefined or how can I write this line var _c = _c || c || {};
better?
Thanks