diff options
author | MDN <actions@users.noreply.github.com> | 2021-05-05 00:31:00 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-05-05 00:31:00 +0000 |
commit | 59a3c2ab5476a2ea617f780764c4b3bf3c1d3d24 (patch) | |
tree | 78e79af91257b7b63f5778438e1d03eb0c21c455 /files/ja/orphaned | |
parent | 4dc84aea9c1d539c82947586ce4b74973d5cabd8 (diff) | |
download | translated-content-59a3c2ab5476a2ea617f780764c4b3bf3c1d3d24.tar.gz translated-content-59a3c2ab5476a2ea617f780764c4b3bf3c1d3d24.tar.bz2 translated-content-59a3c2ab5476a2ea617f780764c4b3bf3c1d3d24.zip |
[CRON] sync translated content
Diffstat (limited to 'files/ja/orphaned')
-rw-r--r-- | files/ja/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/files/ja/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html b/files/ja/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html new file mode 100644 index 0000000000..0ed95f130e --- /dev/null +++ b/files/ja/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html @@ -0,0 +1,50 @@ +--- +title: WeakSet.prototype.clear() +slug: orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear +tags: + - JavaScript + - Method + - Obsolute + - Prototype + - WeakSet +translation_of: Web/JavaScript/Reference/Global_Objects/WeakSet/clear +original_slug: Web/JavaScript/Reference/Global_Objects/WeakSet/clear +--- +<div>{{JSRef("Global_Objects", "WeakSet")}} {{obsolete_header}}</div> + +<h2 id="Summary" name="Summary">概要</h2> + +<p><code>WeakSet</code>オブジェクトからすべての要素を削除します。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox"><code><em>ws</em>.clear();</code></pre> + +<h2 id="Examples" name="Examples">例</h2> + +<h3 id="Example:_Testing_size_of_all_array_elements" name="Example:_Testing_size_of_all_array_elements">例: <code>clear</code> メソッドを使う</h3> + +<pre class="brush: js">var ws = new WeakSet(); + +ws.add(window); +ws.has(window); // true + +ws.clear(); + +ws.has(window); // false +</pre> + +<h2 id="仕様">仕様</h2> + +<p>すべての現在の標準やドラフトでサポートされていません。このメソッドは、リビジョン 28 (October 14, 2014のバージョン)までECMAScript第6版ドラフト仕様でサポートされました。しかし、最新バージョンのドラフトで削除されました。最終仕様では、サポートされていません。</p> + +<h2 id="ブラウザ実装状況">ブラウザ実装状況</h2> + +<p>{{Compat("javascript.builtins.WeakSet.clear")}}</p> + +<h2 id="関連情報">関連情報</h2> + +<ul> + <li>{{jsxref("WeakSet")}}</li> + <li>{{jsxref("WeakSet.prototype.delete()")}}</li> +</ul> |