src/Support/Collection/NodeSet.php
/**
     * Returns the position of the given item in the set.
     *
     * @param TValue $item
     */
Returns the position of the given item in the set.
Returns the position of the given item in the set .
public function indexOf(Node $item): int
    {
        if (!$this->cache->contains($item)) {
            return -1;
        }
        return array_search($item, $this->list, true);
    }
public function indexOf ( Node $ item ) : int { if ( ! $ this -> cache -> contains ( $ item ) ) { return - 1 ; } return array_search ( $ item , $ this -> list , true ) ; }
Returns the position of the given item in the set.
Returns the position of the given item in the set .