3 ms·
Coming from Powershell, nobody told me JavaScript copies arrays by reference instead of by value. Why would anyone want to pass a reference?
by stephengillie 9y ago
Coming from Powershell, nobody told me JavaScript copies arrays by reference instead of by value. Why would anyone want to pass a reference?
- cuchoi 9y agoIn Object Oriented Programming it can be useful if you want to pass the reference as the argument instead of the value.
- deleted 9y ago[deleted]