In java, if I have a list A and a list B, I want to remove all the B elements in A.
You can A.removeALL(B)
But this method is not recognized in angularjs. So I'm a little confused. I can't find a similar method on the Internet. Can I just write a method by myself? Or is there any other method that is equivalent to removeall?
It’s like this, the method A.removeALL(B) is not a method of angularjs, nor is it a method of native js. It is not a method that exists in java.
It is actually very simple to implement such a method using native js.
Apprentice I wrote a js by hand, as follows: