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

Array::reject

Open bantya opened this issue 8 years ago • 0 comments

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)
});

bantya avatar Jun 16 '17 06:06 bantya