underscore-php icon indicating copy to clipboard operation
underscore-php copied to clipboard

Why is there no Arrays:with method?

Open niclaslindberg opened this issue 9 years ago • 0 comments

Maybe I have misunderstood something but why is there no counterpart for the 'with' method?

I.e. invoking

$array = ["a"=>1,"b"=>2, "c"=>3]; $filtered = Arrays::with($array, "a","c");

$filtered is then equal to ["a"=>1,"c"=>3]

niclaslindberg avatar Dec 17 '15 14:12 niclaslindberg