Skip to content

Commit

Permalink
Fixed small issue
Browse files Browse the repository at this point in the history
  • Loading branch information
masterfermin02 committed Mar 21, 2021
1 parent b0653c8 commit 17d67f5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/any.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
* @return bool
*
* @example
Slash\any([1, 3, 5], 'Slash\isOdd'); // === true
Slash\any([1, 3, 5], function ($n) { return $n != 3; }); // === true
Slash\any([], 'Slash\isOdd'); // === false
Slash\any([2, 4, 8], 'Slash\isOdd'); // === false
Slash\any((object) ['a' => 1, 'b' => 3, 'c' => 5], 'Slash\isOdd'); // === true
* Slash\any([1, 3, 5], 'Slash\isOdd'); // === true
*
* Slash\any([1, 3, 5], function ($n) { return $n != 3; }); // === true
*
* Slash\any([], 'Slash\isOdd'); // === false
*
* Slash\any([2, 4, 8], 'Slash\isOdd'); // === false
*
* Slash\any((object) ['a' => 1, 'b' => 3, 'c' => 5], 'Slash\isOdd'); // === true
*/
function any($array, $predicate)
{
Expand Down

0 comments on commit 17d67f5

Please sign in to comment.