nspl\ds\Set::contains PHP 메소드

contains() 공개 메소드

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