You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param array $array The array that should be searched
1442
+
* @param Closure $predicate The predicate callback to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns truthy value, the value is returned from `find()` and the callback will not be called for further elements
1443
+
*
1444
+
* @return mixed Returns the value of the first element for which the `$predicate` callback returns true. If no matching element is found the function returns `null`
* @param Closure $predicate The predicate callback to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns truthy value, the key is returned from `findKey()` and the callback will not be called for further elements
1460
+
*
1461
+
* @return string|int|null Returns the key of the first element for which the `$predicate` callback returns `true`. If no matching element is found the function returns `null`
* @param Closure $predicate The predicate callback to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns truthy value, `true` is returned from `any()` and the callback will not be called for further elements
1477
+
*
1478
+
* @return bool Returns `true`, if one element for which predicate callback returns truthy value. Otherwise the function returns `false`
* @param Closure $predicate The predicate callback to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns falsy value, `false` is returned from `all()` and the callback will not be called for further elements
1494
+
*
1495
+
* @return bool Returns `false`, if one element for which predicate callback returns truthy value. Otherwise the function returns `false`
0 commit comments