What is the difference between that
install=function(s,p){var n;for(n in p)if(p.hasOwnProperty(n))s[n]=p[n]}}
install(myObj,{userid:"5",username:"john"});
To
myObj={userid:"5",username:"john"};
?
What is the difference between that
install=function(s,p){var n;for(n in p)if(p.hasOwnProperty(n))s[n]=p[n]}}
install(myObj,{userid:"5",username:"john"});
To
myObj={userid:"5",username:"john"};
?