contains method

bool contains(
  1. TKey key
)

Whether key is currently in the visible order.

Implementation

bool contains(TKey key) {
  return indexOf(key) != kNotVisible;
}