src/Support/Collection.php
/**
     * Determine if an item exists in the collection using strict comparison.
     *
     * @param mixed  $key
     * @param mixed  $value
     * @return bool
     */
Determine if an item exists in the collection using strict comparison.
@param mixed  $key
@param mixed  $value
@return bool
Determine if an item exists in the collection using strict comparison . @param mixed $key @param mixed $value @return bool
public function containsStrict($key, $value = null)
    {
        if (func_num_args() == 2) {
            return $this->contains(function ($item) use ($key, $value) {
                return data_get($item, $key) === $value;
            });
        }
        if ($this->useAsCallable($key)) {
            return ! is_null($this->first($key));
        }
        return in_array($key, $this->items, true);
    }
public function containsStrict ( $ key , $ value = null ) { if ( func_num_args ( ) == 2 ) { return $ this -> contains ( function ( $ item ) use ( $ key , $ value ) { return data_get ( $ item , $ key ) === $ value ; } ) ; } if ( $ this -> useAsCallable ( $ key ) ) { return ! is_null ( $ this -> first ( $ key ) ) ; } return in_array ( $ key , $ this -> items , true ) ; }
Determine if an item exists in the collection using strict comparison.
Determine if an item exists in the collection using strict comparison .