Skip to main content

Matt Smith

  • About
  • Contact
Modern Web Engineering, Front-End First

Rethinking async loops in JavaScript

2 min read
14253 views

Using await in loops seems intuitive until your code silently stalls or runs slower than expected. If you’ve ever wondered why your API calls run one-by-one instead of all at once, or why map() and await don’t mix the way you’d expect, grab a chair. Let’s chat. The problem: awaiting...

  • JavaScript

How to group arrays in JavaScript without reduce()

2 min read
4375 views

Front-end developers frequently transform arrays: filtering, mapping, reducing. And sometimes grouping. Grouping used to require custom reduce() logic, which often felt like more boilerplate than it was worth. But that’s changing. JavaScript now has native support for grouping data with Object.groupBy() and Map.groupBy(). These static methods make grouping expressive, concise,...

  • JavaScript

Stop using .reverse().find(): meet findLast()

2 min read
4287 views

If you’ve ever needed to search an array from the end, you’ve probably reached for a combination of .slice().reverse().find(...), or looped backward manually. It works, but it’s not an elegant solution. We now have a better way: Array.prototype.findLast() and Array.prototype.findLastIndex(). These features let you search arrays from the end without...

  • JavaScript
  • React
Older posts Newer posts
GitHub
LinkedIn
CodePen
RSS
© 2026 Matt Smith. All rights reserved.