Tagged Questions
3
votes
4answers
220 views
Function that modifies an argument, should I return the modified object?
We have a function that modifies a JS object, by adding some custom properties to it. The function doesn't return antyhing
addTransaction: function (obj) {
obj.transactionId = ...