镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

indexOf: fromIndex #81

Open
Open

Description

@jacobpetersen

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?

Activity

  1. sdras commented on Dec 12, 2018

    @sdras
    Owner

    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!

  2. amanchauhan98 commented on Aug 16, 2021

    @amanchauhan98

    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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions