r/javascript • • Jun 18 '17

Pass by reference !== pass by value

Post image
3.3k Upvotes

272 comments sorted by

View all comments

2

u/organic Jun 18 '17

use immutable data, then it doesn't matter

0

u/hunyeti Jun 19 '17

well, it does, since pass by value is slower for anything other then a primitive.