Skip to main content

Matt Smith

  • About
  • Contact
Web Dev | Front-End Engineer | UX Designer

Write more reliable JavaScript with optional chaining

June 2, 2025
2 min read
0 views

Let me know if this sounds familiar: you’re deep into debugging or trying to access a deeply nested property in a JavaScript object. Suddenly you see this classic error: TypeError: Cannot read property 'x' of undefined This is a common pain point, especially when working with API responses, optional fields,...

  • JavaScript
  • React

How JavaScript’s at() method makes array indexing easier

May 19, 2025
2 min read
1873 views

Working with arrays in JavaScript is an everyday thing for front-end developers. We reach for arrays constantly — whether we’re rendering lists, managing state, or juggling DOM elements. But what if I told you there’s a more elegant way to access elements at a specific index — especially the last...

  • JavaScript

The power of the spread and rest syntax in JavaScript

May 5, 2025
2 min read
4442 views

It’s a fair bet that most web developers regularly encounter the three dots (...) in their code. Sometimes it magically copies arrays, sometimes it gathers up function arguments, and sometimes it shows up in object literals like it’s casting a spell. Say hello to the spread syntax and rest parameter,...

  • JavaScript
  • React
Older posts
Twitter
LinkedIn
GitHub
CodePen
© 2025 Matt Smith. All rights reserved.