Acknowledged
CIQQA-4100

Array.removeAll() does not accept null despite documentation

According to the documentation, Array.removeAll() should accept null as a parameter, although its exact behavior in that case is not specified. One might expect it to remove all entries.

However, the compiler does not accept null as a valid argument. I will attach a screenshot in a follow-up post to illustrate the issue.

Parents
  • Seems clunky, but I guess you could iterate through the array and call remove() on each element.

     Yes, that is what I am doing now. Since my array is small, this should work well enough. With larger arrays, you can only hope that the search performed by the API runs in the same direction as your iteration over the elements.

Comment
  • Seems clunky, but I guess you could iterate through the array and call remove() on each element.

     Yes, that is what I am doing now. Since my array is small, this should work well enough. With larger arrays, you can only hope that the search performed by the API runs in the same direction as your iteration over the elements.

Children
No Data