You probably recognize this way of iterating in JavaScript

for (let i = 0; i < myArray.length; i++) {
// do something with myArray[i]

in ES6, there's a much cleaner way with for..of loops

for (item of myArray) {
    // do something with item

I think that looks a lot better! I changed several of my for loops to for...of loops in this commit.


Back to Home
John Solly Profile Picture
John Solly Profile Picture

John Solly

Hi, I'm John, a Software Engineer with a decade of experience building, deploying, and maintaining cloud-native geospatial solutions. I currently serve as a senior software engineer at New Light Technologies (NLT), where I work on a variety of infrastructure and application development projects.

Throughout my career, I've built applications on platforms like Esri and Mapbox while also leveraging open-source GIS technologies such as OpenLayers, GeoServer, and GDAL. This blog is where I share useful articles with the GeoDev community. Check out my portfolio to see my latest work!