Two ways of clearing an array
In a blog post, David Walsh mentions two approaches for emptying (clearing) an array. This blog post explains the pros and cons of both approaches. In order to understand them, we first need to know about aliasing.
Want to have your say? just login



Be first to show your opinion !!!