Popular posts

JavaScript
React
Post image

How to Destructure Props in Vue (Composition API)

How to correctly destructure props object in a Vue component while maintaining the reactivity.
Continue reading ➞
Post image

Triangulation in Test-Driven Development

How to use triangulation technique to guide the creation of generic code in test-driven development.
Continue reading ➞
Post image

How to Use nextTick() in Vue

Updated March 26, 2023
nextTick(callback) executes the callback when the DOM has been updated.
Continue reading ➞
Post image

Programming to Interface Vs to Implementation

How programming to an interface can make your application easier to change in the future.
Continue reading ➞
Post image

A Smarter JavaScript Mapper: array.flatMap()

Posted December 31, 2021
array.flatMap() is a method on the array that let's you map elements a littler smarter.
Continue reading ➞
Post image

Array Grouping in JavaScript: Object.groupBy()

Updated January 28, 2023
Object.groupBy() and Object.groupByToMap() methods let you group an array by certain criteria.
Continue reading ➞
Post image

How to Access ES Module Metadata using import.meta

Posted December 12, 2021
How to access the meta information (module URL, etc.) of an ES module in JavaScript.
Continue reading ➞
Post image

JSON Modules in JavaScript

How to import JSON data directly into an ES module.
Continue reading ➞
Post image

How to Trim Strings in JavaScript

How to trim (aka remove whitespaces and line terminators) from strings in JavaScript.
Continue reading ➞
Post image

TypeScript Function Overloading

Function overloading in TypeScript lets you define functions that can be called in multiple ways.
Continue reading ➞