From 95aca4b4d8fa62815d4bd412fff1a364f842814a Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 29 Apr 2021 16:16:42 -0700 Subject: remove retired locales (#699) --- .../global_objects/array/entries/index.html | 77 ---------------------- 1 file changed, 77 deletions(-) delete mode 100644 files/it/web/javascript/reference/global_objects/array/entries/index.html (limited to 'files/it/web/javascript/reference/global_objects/array/entries/index.html') diff --git a/files/it/web/javascript/reference/global_objects/array/entries/index.html b/files/it/web/javascript/reference/global_objects/array/entries/index.html deleted file mode 100644 index 31e156afb8..0000000000 --- a/files/it/web/javascript/reference/global_objects/array/entries/index.html +++ /dev/null @@ -1,77 +0,0 @@ ---- -title: Array.prototype.entries() -slug: Web/JavaScript/Reference/Global_Objects/Array/entries -translation_of: Web/JavaScript/Reference/Global_Objects/Array/entries ---- -
{{JSRef}}
- -

Il metodo entries() restituisce un nuovo oggetto Array Iterator contenente delle coppie chiave/valore per ogni indice presente nell'array.

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

Sintassi

- -
a.entries()
- -

Valore ritornato

- -

Un nuovo oggetto iterator {{jsxref("Array")}}.

- -

Esempi

- -

Utilizzo nel for…of

- -
var a = ['a', 'b', 'c'];
-var iterator = a.entries();
-
-for (let e of iterator) {
-  console.log(e);
-}
-// [0, 'a']
-// [1, 'b']
-// [2, 'c']
-
- -

Specifiche

- - - - - - - - - - - - - - - - - - - -
SpecificaStatoCommento
{{SpecName('ES2015', '#sec-array.prototype.entries', 'Array.prototype.entries')}}{{Spec2('ES2015')}}Definizione iniziale.
{{SpecName('ESDraft', '#sec-array.prototype.entries', 'Array.prototype.entries')}}{{Spec2('ESDraft')}} 
- -

Compatibilità con il browser

- -
- - -

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

-
- -

Vedi anche

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