Fun with arrays
In this article, we'll look at some weird quirks with JavaScript arrays to learn a little more about how they work under the hood. An array is a collection or list of values.
3 min read
Understanding error handling in Promise chains
How errors propagate through a chain of Promises, and where your catch handlers should go.
3 min read
Customizing
JSON.parseandJSON.stringifyThe JSON.stringify and JSON.parse functions are handy for converting objects to JSON strings and back again. However, not all properties of an object are serializable.
2 min read
How many ways can we reverse an Array?
There's a Stage 3 proposal to add several array methods including Array.prototype.toReversed, which will create a reversed copy of the array.
2 min read
Comparing
constdeclarations and immutable objectsWay back in my Java days, when interviewing candidates, I would often ask the candidate to explain the meaning of the final keyword.
5 min read
Promise Tips: When do I need to create my own Promise instance?
Promises are pretty ubiquitous these days, but sometimes Promise based code is more complex that it needs to be.
4 min read
Comparison of JavaScript modules
JavaScript has been around since 1995. In that time there have been several different ways to create modules.
JavaScript Maps vs Plain JavaScript Objects
ES2015, also known as ES6, added lots of new things to the JavaScript language. One very useful addition was the Map. Map allows you to map keys to values. Couldn't we already do that?
2 min read