| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | dev_langs | ms.assetid | caps.latest.revision | author | ms.author | manager | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
entries Method (Array) (JavaScript) | Microsoft Docs |
01/18/2017 |
windows-client-threshold |
|
language-reference |
|
9bc46afb-74d2-4f99-8c95-f46475acf21d |
4 |
mikejo5000 |
mikejo |
ghogen |
Returns an iterator that returns the key/value pairs of the array.
arrayObj.entries();
arrayObj
Required. The array object.
The following example shows how to get the key/value pairs of an array.
var entries = ["a", "b", "c"].entries();
// entries.next().value == [0, "a"]
// entries.next().value == [1, "b"]
// entries.next().value == [2, "c"] [!INCLUDEjsv12]