From 52ccdf1f0a1cee3f0659ac78e81c79dae152399b Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 23 Jun 2021 00:34:06 +0000 Subject: [CRON] sync translated content --- .../global_objects/map/entries/index.html | 71 ---------------------- 1 file changed, 71 deletions(-) delete mode 100644 files/ja/web/javascript/reference/global_objects/map/entries/index.html (limited to 'files/ja/web/javascript/reference/global_objects/map/entries/index.html') 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 ---- -
{{JSRef}}
- -

entries() メソッドは、挿入順で Map オブジェクトの要素に対する [key, value] ペアを含む新しい Iterator オブジェクトを返します。

- -
{{EmbedInteractiveExample("pages/js/map-prototype-entries.html")}}
- - - -

構文

- -
myMap.entries()
- -

返値

- -

新しい {{jsxref("Map")}} の反復子オブジェクトです。

- -

- -

entries() の使用

- -
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"]
-
- -

仕様書

- - - - - - - - - - - - -
仕様書
{{SpecName('ESDraft', '#sec-map.prototype.entries', 'Map.prototype.entries')}}
- -

ブラウザーの互換性

- - - -

{{Compat("javascript.builtins.Map.entries")}}

- -

関連情報

- - -- cgit v1.2.3-54-g00ecf