Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indexOf: fromIndex #81

Open
jacobpetersen opened this issue Dec 11, 2018 · 2 comments
Open

indexOf: fromIndex #81

jacobpetersen opened this issue Dec 11, 2018 · 2 comments

Comments

@jacobpetersen
Copy link

I feel like indexOf's optional second parameter: fromIndex, is an unsung hero.

It has saved me many times from having to slice an array before calling indexOf.

Would you consider a PR with an example using fromIndex?

@sdras
Copy link
Owner

sdras commented Dec 12, 2018

absolutely! it would be great if you could explain/show it in a way that didn't cloud newcomers understanding of indexOf.

The other thing is updating the languages. We could either drop it into google translate or just leave it different, I'm open to either.

I look forward to it!

@amanchauhan98
Copy link

Indexof ? I can't understand!! plaese somebody elobrate this.

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

No branches or pull requests

3 participants