I'm using node (express) and want to add a new property before my response (in here I named it as result) get passed to the front-end.
async.parallel(stack, function (err,result) {
result.users[0].price = 100
// console.log(result.users[0]); // I couldn't find price property here I wonder why.
res.json(result);
});
Why is this so?
I tried to alter the other property like password:
console.log(delete result.users[0].password);
console.log(result.users[0]) // password is still present here?
I tried a mini example in fiddle it worked. https://jsfiddle.net/16333z15/