underscore-php
underscore-php copied to clipboard
Array::reject
On your site under Array::reject there is a typo in the method usage example. The example uses Array::filter method insted of Array::reject The example says:
Arrays::filter(array(1, 2, 3), function($value) {
return $value % 2 != 0; // Returns array(2)
});
It should rather say:
Arrays::reject(array(1, 2, 3), function($value) {
return $value % 2 != 0; // Returns array(2)
});