Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 1.03 KB

File metadata and controls

48 lines (41 loc) · 1.03 KB
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
devlang-javascript
language-reference
JavaScript
TypeScript
DHTML
9bc46afb-74d2-4f99-8c95-f46475acf21d
4
mikejo5000
mikejo
ghogen

entries Method (Array) (JavaScript)

Returns an iterator that returns the key/value pairs of the array.

Syntax

arrayObj.entries();  

Parameters

arrayObj
Required. The array object.

Remarks

Example

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"]   

Requirements

[!INCLUDEjsv12]