public function reject($callback)
    {
        if (is_callable($callback))
        {
            return $this->copy()->filter(function($item) use ($callback)
            {
                return ! $callback($item);
            });
        }

        $callback = $this->getStringable($callback);

        return $this->copy()->filter(function($item) use ($callback)
        {
            return $item != $callback;
        });
    }
public function reject($callback)
    {
        if (is_callable($callback))
        {
            return $this->copy()->filter(function($item) use ($callback)
            {
                return ! $callback($item);
            });
        }

        $callback = $this->getStringable($callback);

        return $this->copy()->filter(function($item) use ($callback)
        {
            return $item != $callback;
        });
    }
public function reject ( $ callback ) { if ( is_callable ( $ callback ) ) { return $ this -> copy ( ) -> filter ( function ( $ item ) use ( $ callback ) { return ! $ callback ( $ item ) ; } ) ; } $ callback = $ this -> getStringable ( $ callback ) ; return $ this -> copy ( ) -> filter ( function ( $ item ) use ( $ callback ) { return $ item != $ callback ; } ) ; }
Create new Container of all elements that do not pass a given truth test.

@param callable|string|StringContract $callback
@return static
Create new Container of all elements that do not pass a given truth test .