nspl\ds\Set::contains PHP Method

contains() public method

public contains ( mixed $element ) : boolean
$element mixed
return boolean
    public function contains($element)
    {
        $elementKey = static::getElementKey($element);
        return isset($this->array[$elementKey]) || array_key_exists($elementKey, $this->array);
    }