Array.find will not return a Boolean value in your examples. Instead the value itself will be returned. Or the undefined, if there is no match.
You are perfectly right, i've updated the text
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Array.find will not return a Boolean value in your examples. Instead the value itself will be returned. Or the undefined, if there is no match.
You are perfectly right, i've updated the text