-
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: add a find
method
#356
Comments
The function is already implemented: collections/src/ReadableCollection.php Lines 216 to 226 in 425857d
|
this is only in the 2.0 version, is there a reason it's not included in earlier versions ? |
ok found this: #252 (comment) Not completely convinced but okay, fair enough |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar to the javascript
Array.prototype.find
, this function would take a closure as a an argument and return the first item matching the closure.Example:
$item
here would be nullable.The text was updated successfully, but these errors were encountered: