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 2015年7月.
Object.isSealed() メソッドは、オブジェクトが封印されているかどうかを判定します。
確認したいオブジェクトです。
論理値で、与えられたオブジェクトが封印されているかどうかを示します。
オブジェクトが封印されている場合は true が、そうでない場合は false が返ります。オブジェクトが拡張不可かつすべてのプロパティが設定変更不可であり、それゆえ削除できない場合に(ただし書き込み不可である必要はありません)、封印されているとなります。
ES5 では、このメソッドの引数がオブジェクトではない場合 (プリミティブの場合)、 TypeError が発生します。 ES2015 以降では、オブジェクトでない引数は、それが封印された通常のオブジェクトであるかのように扱われ、単に true それを返します。
| ECMAScript® 2027 Language Specification # sec-object.issealed |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年8月23日 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.