Skip to content

[ja] Array.prototype.indexOf() の返値が false になっている箇所を -1 に修正する提案 #29703

@MasakazuTerada

Description

@MasakazuTerada

MDN URL

https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf

この問題に関する節や見出しはどこですか。

https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf#fromindex

不完全、不親切、不完全であった情報は何ですか。

  • fromIndex >= array.length の場合、配列の検索は行われず、 false が返されます。

どう表示されるべきだと思いますか。

  • fromIndex >= array.length の場合、配列の検索は行われず、 -1 が返されます。

補足情報となるリンク、参考資料、引用文献はありますか。

No response

他に共有したいことはありますか。

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    l10n-jaIssues related to Japanese content.needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions