From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- .../global_objects/array/values/index.html | 86 ++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 files/tr/web/javascript/reference/global_objects/array/values/index.html (limited to 'files/tr/web/javascript/reference/global_objects/array/values/index.html') diff --git a/files/tr/web/javascript/reference/global_objects/array/values/index.html b/files/tr/web/javascript/reference/global_objects/array/values/index.html new file mode 100644 index 0000000000..1c949e93a5 --- /dev/null +++ b/files/tr/web/javascript/reference/global_objects/array/values/index.html @@ -0,0 +1,86 @@ +--- +title: Array.prototype.values() +slug: Web/JavaScript/Reference/Global_Objects/Array/values +tags: + - Dizi yineleyici + - Iterator + - JavaScript + - metod + - prototip +translation_of: Web/JavaScript/Reference/Global_Objects/Array/values +--- +
{{JSRef}}
+ +
 
+ +

values() methodu dizideki tüm elemanları içeren yeni bir (Dizi yineleyici)  nesnesi döner

+ +
var a = ['e', 'l', 'm', 'a'];
+var yineleyici = a.values();
+
+console.log(yineleyici.next().value); // e
+console.log(yineleyici.next().value); // l
+console.log(yineleyici.next().value); // m
+console.log(yineleyici.next().value); // a
+
+
+ +

Sintaks

+ +
arr.values()
+ +

Dönüş değeri

+ +

Yeni bir {{jsxref("Array")}} yineleyici nesne.

+ +

Örnekler

+ +

for...of loop ile yineleme

+ +
var arr = ['e', 'l', 'm', 'a'];
+var yineleyici = arr.values();
+
+for (let harf of yineleyici) {
+  console.log(harf);
+}
+
+ +

Specifications

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('ES2015', '#sec-array.prototype.values', 'Array.prototype.values')}}{{Spec2('ES2015')}}Initial definition.
{{SpecName('ESDraft', '#sec-array.prototype.values', 'Array.prototype.values')}}{{Spec2('ESDraft')}} 
+ +

Web tarayıcı uyumluluğu

+ +
+ + +

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

+
+ +

See also

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