Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

dielshin
Copy link

No description provided.

foreach ($array as $key => $value) {
$current = $iteratee($value);

if (null !== $current && (null === $computed ? ($current === $current) : $current < $computed)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$current === $current will always be true here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сopy-paste from maxBy 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants