#js
Read more stories on Hashnode
Articles with this tag
JavaScript has two built-in functions for reversing arrays. The first method is Array.prototype.reverse() which reverses the array in place, meaning...
Using Error.prototype.cause to create better errors ยท Intercepting Errors and returning a new error with a more end-user-friendly message is a staple of...
We all have used find before on an array, but what if we wanted to start from the end of the array? Well, thanks to findLast you no longer need to...
We often use the or operator || in JavaScript to create a fallback value. However, this comes with risks, and you should try to use nullish coalescing...