コード例 #1
0
function _without($array, $values)
{
    return Underscore::without($array, $values);
}
コード例 #2
0
ファイル: Underscore.php プロジェクト: brombal/underscore.php
 /**
  * @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([]);
 }