JSREF

JavaScript Array entries()

Create an Array Iterator, and then iterate over the key/value pairs: