array-explorer icon indicating copy to clipboard operation
array-explorer copied to clipboard

indexOf: fromIndex

Open petetalksweb opened this issue 6 years ago • 2 comments

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?

petetalksweb avatar Dec 11 '18 16:12 petetalksweb

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!

sdras avatar Dec 12 '18 16:12 sdras

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

amanchauhan98 avatar Aug 16 '21 08:08 amanchauhan98