This translation is incomplete. Please help translate this article from English.
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 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
Specification | Status | Comment |
---|---|---|
ECMAScript 2015 (6th Edition, ECMA-262) The definition of 'Array.prototype.values' in that specification. |
Standard | Initial definition. |
ECMAScript Latest Draft (ECMA-262) The definition of 'Array.prototype.values' in that specification. |
Draft |
Web tarayıcı uyumluluğu
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | Server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic support | Chrome Full support 66 | Edge Full support Yes | Firefox Full support 60 | IE No support No | Opera Full support 53 | Safari Full support 9 | WebView Android Full support 66 | Chrome Android Full support 66 | Edge Mobile Full support Yes | Firefox Android Full support 60 | Opera Android Full support 53 | Safari iOS Full support 9 | Samsung Internet Android No support No | nodejs
Full support
10.9.0
|
Legend
- Full support
- Full support
- No support
- No support
- See implementation notes.
- See implementation notes.
- User must explicitly enable this feature.
- User must explicitly enable this feature.
See also
Document Tags and Contributors
Tags:
Contributors to this page:
NizamettinTemel
Last updated by:
NizamettinTemel,