ES6+

A collection of articles covering ES6+

ArticleJuly 20, 2023
IndexedDB > Web StorageExplore the advantages of IndexedDB over the Web Storage API as a more efficient and sophisticated alternative for storing structured data on the client, eliminating the need for repetitive JSON parsing and stringifying operations.
Quick BitOctober 14, 2021
Avoid the Async Await try-catch hellRemember the old callback hell we used to deal with? Luckily, we can circumvent this nowadays with the use of Async Await. Unfortunately, this can introduce a new Async Await try-catch hell. Here's the solution on how to fix this.
ArticleAugust 4, 2021
You should use the Intl browser APIIf you have worked with internationalisation in a project you know what a hassle it can be. Besides the regular content, you have to worry about the formatting of numbers, currencies and dates. In this article, we’ll go over how we can make this easier with Intl.
Quick BitJune 30, 2021
Why I use data attributes over classes for declarative element statesI always use data attributes over classes to query declarative elements in my JS code for a few reasons. Here's why.
Quick BitApril 26, 2021
Nullish Coalescing (try to say it quickly ten times)One of my favourite features which were added in ES2020 is nullish coalescing. Despite its difficult pronunciation, this feature is a simple way of checking for falsey values. Let's have a look.
Quick BitApril 13, 2021
Optionally add a key to an object in one lineI sometimes need to optionally add a key to an object based on a statement. This can easily be done with a few lines of code, but where's the fun in that? How can I do this as clean as possible?
TalkOctober 10, 2019
N ways to write better React components for your next Nerdy Party MachineWriting (React.js) components is hard. How can we make this easier for yourself and your team?