function _without($array, $values) { return Underscore::without($array, $values); }
/** * @tags arrays */ public function testWithout() { // it should return a copy of the array with all instances of the values removed $this->typeTolerant([1, 2, 3], [1], function ($in, $out) { $this->array(_::without($in, 2, 3))->isEqualTo($out); }, [0, -1]); // it should return an empty array if list is empty $this->array(_::without(null, 1))->isEqualTo([]); }