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/values/index.html | 87 ---------------------- 1 file changed, 87 deletions(-) delete mode 100644 files/it/web/javascript/reference/global_objects/array/values/index.html (limited to 'files/it/web/javascript/reference/global_objects/array/values') diff --git a/files/it/web/javascript/reference/global_objects/array/values/index.html b/files/it/web/javascript/reference/global_objects/array/values/index.html deleted file mode 100644 index f3019ef144..0000000000 --- a/files/it/web/javascript/reference/global_objects/array/values/index.html +++ /dev/null @@ -1,87 +0,0 @@ ---- -title: Array.prototype.values() -slug: Web/JavaScript/Reference/Global_Objects/Array/values -translation_of: Web/JavaScript/Reference/Global_Objects/Array/values ---- -
{{JSRef}}
- -

 

- -

Il metodo values() restituisce un nuovo oggetto Array Iterator che contiene i valori per ogni indice nell'array.

- -

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

- -
var a = ['a', 'b', 'c', 'd', 'e'];
-var iterator = a.values();
-
-console.log(iterator.next().value); // a
-console.log(iterator.next().value); // b
-console.log(iterator.next().value); // c
-console.log(iterator.next().value); // d
-console.log(iterator.next().value); // e
- -

Sintassi

- -
arr.values()
- -

Valore di ritorno

- -

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

- -

Esempi

- -

Iterazione utilizzando il  for...of loop

- -
var arr = ['a', 'b', 'c', 'd', 'e'];
-var iterator = arr.values();
-
-for (let letter of iterator) {
-  console.log(letter);
-}
-
- -

Array.prototype.values è una implementazionde di default di Array.prototype[Symbol.iterator].

- -
Array.prototype.values === Array.prototype[Symbol.iterator]      //true
- -

TODO: please write about why we need it, use cases.

- -

Specificazioni

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

Browser compatibility

- -
- - -

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

-
- -

See also

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