File tree Expand file tree Collapse file tree 3 files changed +0
-12
lines changed Expand file tree Collapse file tree 3 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 5151 */
5252function filter (iterable $ array , $ predicate = null ): array
5353{
54- if (null === $ predicate ) {
55- $ predicate = '_\identity ' ;
56- }
57-
5854 $ iteratee = baseIteratee ($ predicate );
5955
6056 $ result = \array_filter (
Original file line number Diff line number Diff line change 5353 */
5454function find (iterable $ collection , $ predicate = null , int $ fromIndex = 0 )
5555{
56- if (null === $ predicate ) {
57- $ predicate = '_\identity ' ;
58- }
59-
6056 $ iteratee = baseIteratee ($ predicate );
6157
6258 foreach (\array_slice ($ collection , $ fromIndex ) as $ key => $ value ) {
Original file line number Diff line number Diff line change 3030 */
3131function findLast (iterable $ collection , $ predicate = null , int $ fromIndex = 0 )
3232{
33- if (null === $ predicate ) {
34- $ predicate = '_\identity ' ;
35- }
36-
3733 $ iteratee = baseIteratee ($ predicate );
3834
3935 foreach (\array_slice (\array_reverse ($ collection , true ), $ fromIndex ) as $ key => $ value ) {
You can’t perform that action at this time.
0 commit comments