mdn/translated-content

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

Open

#29,703 opened on Oct 8, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Markdown (8,321 forks)github user discovery
good first issuel10n-ja

Repository metrics

Stars
 (1,994 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide