Skip to main content

Matt Smith

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

Error chaining in JavaScript: cleaner debugging with Error.cause

2 min read

Error handling in JavaScript has always felt a bit chaotic. Throwing errors is easy, but tracing them back to the root cause? Not so much. That’s where the cause property comes in. The problem with traditional error handling When you’re working with layered code (e.g., services calling services, wrapper functions,...

  • JavaScript
  • TypeScript

Rethinking async loops in JavaScript

2 min read

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

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 grouping with Object.groupBy() and Map.groupBy(). No external libraries or reduce() patterns needed. What are Object.groupBy()...

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