YouTip LogoYouTip

Jsref Entries

# JavaScript entries() Method [![Image 3: Array Object Reference Manual](#) JavaScript Array Object](#) ## Example Create an iterable object from the array fruit, which contains the key-value pairs of the array: var fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.entries(); [Try it Β»](#) * * * ## Definition and Usage The entries() method returns an Array Iterator object with key/value pairs. The array index is used as the key, and the array element as the value in the iterator object. [0, "Banana"][1, "Orange"][2, "Apple"][3, "Mango"] * * * ## Browser Support The numbers in the table specify the first browser version that fully supports the method. | Method | | | | | | | --- | --- | --- | --- | --- | --- | | entries() | 38.0 | 12.0 | 28.0 | 8 | 25.0 | * * * ## Syntax array.entries() ## Parameters None. ## Technical Details Return Value: An Array Iterator Object JavaScript Version: ECMAScript 6 * * JavaScript Array Object](#)
← Jsref Regexp TostringPhp Strval Function β†’