Skip to content

Conversation

anushanadig
Copy link

Array.find and Array.findIndex confused me for a while. I thought they were function properties, but in reality, they are prototype methods of Array. I'm a beginner and I thought it'd be confusing for other beginners as well. So I renamed them to Array.prototype.find and Array.prototype.findIndex to make it more clear.

Rename Array.find and Array.findIndex to Array.prototype.find and Array.prototype.findIndex to make it clear.
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.

1 participant