diff options
author | MDN <actions@users.noreply.github.com> | 2021-06-23 00:34:06 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-06-23 00:34:06 +0000 |
commit | 52ccdf1f0a1cee3f0659ac78e81c79dae152399b (patch) | |
tree | b17424899ff0c32cee6820a6921edd9999da6ea1 /files/ja/web/javascript/reference/global_objects/map/entries/index.html | |
parent | d62c8afe56395e9e793dab0f629b2a1694449c82 (diff) | |
download | translated-content-52ccdf1f0a1cee3f0659ac78e81c79dae152399b.tar.gz translated-content-52ccdf1f0a1cee3f0659ac78e81c79dae152399b.tar.bz2 translated-content-52ccdf1f0a1cee3f0659ac78e81c79dae152399b.zip |
[CRON] sync translated content
Diffstat (limited to 'files/ja/web/javascript/reference/global_objects/map/entries/index.html')
-rw-r--r-- | files/ja/web/javascript/reference/global_objects/map/entries/index.html | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/files/ja/web/javascript/reference/global_objects/map/entries/index.html b/files/ja/web/javascript/reference/global_objects/map/entries/index.html deleted file mode 100644 index fd4710ebf5..0000000000 --- a/files/ja/web/javascript/reference/global_objects/map/entries/index.html +++ /dev/null @@ -1,71 +0,0 @@ ---- -title: Map.prototype.entries() -slug: Web/JavaScript/Reference/Global_Objects/Map/entries -tags: - - ECMAScript 2015 - - Iterator - - JavaScript - - Map - - Method - - Prototype -translation_of: Web/JavaScript/Reference/Global_Objects/Map/entries ---- -<div>{{JSRef}}</div> - -<p><strong><code>entries()</code></strong> メソッドは、挿入順で <code>Map</code> オブジェクトの要素に対する <code>[key, value]</code> ペアを含む新しい <a href="/ja/docs/Web/JavaScript/Guide/Iterators_and_Generators">Iterator</a> オブジェクトを返します。</p> - -<div>{{EmbedInteractiveExample("pages/js/map-prototype-entries.html")}}</div> - -<div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox notranslate"><code><var>myMap</var>.entries()</code></pre> - -<h3 id="Return_value" name="Return_value">返値</h3> - -<p>新しい {{jsxref("Map")}} の反復子オブジェクトです。</p> - -<h2 id="Examples" name="Examples">例</h2> - -<h3 id="Using_entries" name="Using_entries">entries() の使用</h3> - -<pre class="brush:js notranslate">let myMap = new Map() -myMap.set('0', 'foo') -myMap.set(1, 'bar') -myMap.set({}, 'baz') - -let mapIter = myMap.entries() - -console.log(mapIter.next().value) // ["0", "foo"] -console.log(mapIter.next().value) // [1, "bar"] -console.log(mapIter.next().value) // [Object, "baz"] -</pre> - -<h2 id="Specifications" name="Specifications">仕様書</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">仕様書</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('ESDraft', '#sec-map.prototype.entries', 'Map.prototype.entries')}}</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> - -<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div> - -<p>{{Compat("javascript.builtins.Map.entries")}}</p> - -<h2 id="See_also" name="See_also">関連情報</h2> - -<ul> - <li>{{jsxref("Map.prototype.keys()")}}</li> - <li>{{jsxref("Map.prototype.values()")}}</li> -</ul> |