removeAll vs empty an array with [] in knockoutjs
From the end result point of view there is no difference between the two call, so you will end up with myArray containing no elements. However there is one small difference (if you don’t care about the different return values): self.myArray([]); will replace the underlying array instance with a newly created empty array. While the … Read more