Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2016年9月.
includes() は TypedArray インスタンスのメソッドで、型付き配列の項目内に特定の値が含まれているかどうかを判断し、その結果に応じて true か false を返します。このメソッドは Array.prototype.includes() と同じアルゴリズムです。
探す対象の要素
fromIndex 省略可検索を始める位置を示すゼロ基点のインデックスで、整数に変換されます。
論理値で、型付き配列(指定する場合はインデックス fromIndex で示される型付き配列の一部)内で値 searchElement が見つかった場合に true なります。
詳細については、 Array.prototype.includes() をご覧ください。このメソッドは汎用的ではなく、型付き配列インスタンスに対してのみ呼び出すことができます。
| ECMAScript® 2027 Language Specification # sec-%typedarray%.prototype.includes |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年1月22日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.