src/Storage/Collection.php
public function intersect($data) {
		
		if (! is_array($data)) {
			$data = $this->makeArray($data);
		}
		
		return new static(array_intersect_assoc($this->_data, $data));
	}
public function intersect($data) {
		
		if (! is_array($data)) {
			$data = $this->makeArray($data);
		}
		
		return new static(array_intersect_assoc($this->_data, $data));
	}
public function intersect ( $ data ) { if ( ! is_array ( $ data ) ) { $ data = $ this -> makeArray ( $ data ) ; } return new static ( array_intersect_assoc ( $ this -> _data , $ data ) ) ; }
Computes the intersection with the given array and returns a new collection.

@param array|\xpl\Common\Arrayable $data
@return \xpl\Common\Storage\Collection
Computes the intersection with the given array and returns a new collection .