underscore-php
underscore-php copied to clipboard
Why is there no Arrays:with method?
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]