Can't pass array by reference on node.js. Some crazy behaviour here
124
Is JavaScript a pass-by-reference or pass-by-value language?
91999
C++: Why pass-by-value is generally more efficient than pass-by-reference for built-in (i.e., C-like) types
73546
Iterating over array of objects javascript - odd behaviour?
129835
What's wrong with var x = new Array();
145411
Why doesn't console.log work when passed as a parameter to forEach?
49247
Pass by Reference / Value in C++
19451
Can't populate array called `status`
66864
How do I pass this array of c strings correctly?
106054
Passing pointer of dynamic var by reference
147226
Pass by reference, constant reference, rvalue-reference, or constant rvalue-reference?
4566
Is Chrome's JavaScript console lazy about evaluating arrays?
47176
Strange, unexpected behavior (disappearing/changing values) when using Hash default value, e.g. Hash.new([])
101561
Passing an empty array as default value of an optional parameter
46826
How does require work with new operator in node.js?
77781
Is passing pointer argument, pass by value in C++?
130226
Passing address of array as a function parameter
55739
Arrays misbehaving