All:
Say I have an array of object, each one has value attr. What I want to do is :
Loop thru the array and remove the objects whose value is less than 1,
I thought of using splice or create another array, push those whose value>=1 into it then return new array, I wonder which way is better? Or any other efficient way?
Thanks