Array.entries

entries — Returns an ArrayIterator of the array.

Description

Array.entries()

Changelog

Version Description
ES 6 Introduced.

Examples

Example #1 – entries example
var array = [2, 4, 8]; var entries = array.entries(); console.log(typeof entries); // object console.log(entries); // ArrayIterator {}

External references