Skip to main content
Matt Smith
About
Elsewhere
Modern Web Engineering, Front-End First
Posts tagged “JavaScript”
Sometimes three boring statements beats one clever expression
I stopped destructuring everything
The quiet problem with unnecessary async
I keep tripping over “true, false, true”
Why I don’t chain everything in JavaScript anymore
Native JSON modules are finally real
From instanceof to Error.isError: safer error checking in JavaScript
Explicit resource management in JavaScript
Stop turning everything into arrays (and do less work instead)
Error chaining in JavaScript: cleaner debugging with Error.cause
Rethinking async loops in JavaScript
How to group arrays in JavaScript without reduce()
Stop using .reverse().find(): meet findLast()
Finally, safe array methods in JavaScript
Understanding Promise.any(): when one success is enough
Logical assignment operators in JavaScript: small syntax, big wins
Modern async iteration in JavaScript with Array.fromAsync()
Default parameters: your code just got smarter
Using await at the top level in ES modules
Write more reliable JavaScript with optional chaining
How JavaScript’s at() method makes array indexing easier
The power of the spread and rest syntax in JavaScript
When to use map() vs. forEach()
Mastering default values in JavaScript with the nullish coalescing (??) operator
Using closest() to return the correct DOM element
Phone number links and accessibility
Zero-based date, Christmas, and emoji
Math.floor, Math.random, and Jurassic Park
Show my password, please
Accessible floating labels