Is there nice way to bind data - one object properties into another in JS and Node(Express) like there is in Groovy/Grails (i.e. user = commandObj.properties). So for, i found the following way, however. It seems taking too many lines of code that could be one liner.
for(var key in user){
if (user.hasOwnProperty(key)) {
user[key] = commandObj[key];
console.log(key + ':' + user[key]);
}
}
Thank you