src/Rails/ActiveModel/Collection.php
public function remove(Closure $criteria)
    {
        foreach ($this->members as $k => $member) {
            if ($criteria($member)) {
                unset($this->members[$k]);
            }
        }
        $this->members = array_values($this->members);
        return $this;
    }
public function remove(Closure $criteria)
    {
        foreach ($this->members as $k => $member) {
            if ($criteria($member)) {
                unset($this->members[$k]);
            }
        }
        $this->members = array_values($this->members);
        return $this;
    }
public function remove ( Closure $ criteria ) { foreach ( $ this -> members as $ k => $ member ) { if ( $ criteria ( $ member ) ) { unset ( $ this -> members [ $ k ] ) ; } } $ this -> members = array_values ( $ this -> members ) ; return $ this ; }
If criteria returns a non-empty value, that member is removed.
If criteria returns a non - empty value that member is removed .