Hi-Folks / array

Arr class is built on top of the PHP array functions. Arr exposes methods for creating, managing, accessing to the array data structure.
https://packagist.org/packages/hi-folks/array
MIT License
15 stars 9 forks source link

Add Arr method: find() #11

Closed roberto-butti closed 2 years ago

roberto-butti commented 2 years ago

What

Add new method to Arr class, in src/Arr.php file

Description

The find() method returns the value of the first element in the provided array that satisfies the provided testing function. If no values satisfy the testing function, undefined is returned. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find

Checklist

roberto-butti commented 2 years ago

closed by #39 Thank you to @tombenevides