Stop turning everything into arrays

Author photo beside the “Stop turning everything into arrays (and do less work instead)” title. Code snippets with an arrow. Matt Smith, web dev, front-end engineer, UX designer.

Matt Smith explains how JavaScript iterator helpers enable lazy map, filter, and take chains that avoid intermediate arrays and stop once the UI has enough items. It helps with large lists, streams, and paginated APIs, and it is supported in modern browsers and Node 22+.

allthingssmitty.com/2026/01/12/stop-turning-everything-into-arrays-and-do-less-work-instead