query: Why does my function change the argument when it modifies an array?
positive_passages.docid: 124
positive_passages.text: Is JavaScript a pass-by-reference or pass-by-value language?
negative_passages.docid: 25261
negative_passages.text: How can I convert the "arguments" object to an array in JavaScript?
negative_passages.docid: 11286
negative_passages.text: Can a variable number of arguments be passed to a function?
negative_passages.docid: 47412
negative_passages.text: Why swapping two values based on pointers don't work outside function scope?
negative_passages.docid: 136822
negative_passages.text: Why does a C-Array have a wrong sizeof() value when it's passed to a function?
negative_passages.docid: 45943
negative_passages.text: JavaScript "new Array(n)" and "Array.prototype.map" weirdness
negative_passages.docid: 113622
negative_passages.text: Why does a large local array crash my program, but a global one doesn't?
negative_passages.docid: 22601
negative_passages.text: Why doesn’t deleting from a Javascript array change its length?
negative_passages.docid: 125985
negative_passages.text: Why does this const member function allow a member variable to be modified?
negative_passages.docid: 52076
negative_passages.text: Why is an ArrayList parameter modified, but not a String parameter?
negative_passages.docid: 12143
negative_passages.text: argumental reference inconsistency in javascript
negative_passages.docid: 77807
negative_passages.text: Does pass-by-value affect the performance of function calls?
negative_passages.docid: 1607
negative_passages.text: List of lists changes reflected across sublists unexpectedly
negative_passages.docid: 89574
negative_passages.text: Why does PHP's foreach advance the pointer of its array (only) once?
negative_passages.docid: 92276
negative_passages.text: variably modified array at file scope in C
negative_passages.docid: 94300
negative_passages.text: Why does the Replace() string method not modify my string variable?
negative_passages.docid: 53855
negative_passages.text: using underscore's “difference” method on arrays of objects