X
Xu, Qian
Hi All,
I have defined a function
function fct(arr) { ... }
When I call this function, I prefer to write
fct(Array(item1, item2));
But if I write
fct(new Array(item1, item2));
The code above works as well. But Will it cause any memory leaks?
I have defined a function
function fct(arr) { ... }
When I call this function, I prefer to write
fct(Array(item1, item2));
But if I write
fct(new Array(item1, item2));
The code above works as well. But Will it cause any memory leaks?