Remove all the child nodes from this node that match the criterion in the given test
test
void removeWhere(bool test(INode element));