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
petetalksweb opened this issue Dec 11, 2018 · 1 comment
Open

indexOf: fromIndex #81

petetalksweb opened this issue Dec 11, 2018 · 1 comment

Comments

@petetalksweb
Copy link

@petetalksweb petetalksweb commented Dec 11, 2018

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 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!

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.