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?
--
best regards
Xu, Qian (stanleyxu)
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?
--
best regards
Xu, Qian (stanleyxu)
Comment