JavaScript
React
Best Practices
Popular
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

A Simple Explanation of Function Overloading in TypeScript

Posted November 18, 2021
Function overloading in TypeScript lets you define functions that can be called in multiple ways.
Continue reading ➞
Post image

How to Debounce and Throttle Callbacks in Vue

Posted November 12, 2021
How to debounce and throttle watchers and event handlers in Vue components.
Continue reading ➞
Post image

How to Show/Hide Elements in Vue

Posted November 3, 2021
How to use v-if, v-show and :class to show/hide elements in Vue.
Continue reading ➞
Post image

Sparse vs Dense Arrays in JavaScript

Posted October 27, 2021
What's the difference between sparse and dence arrays in JavaScript
Continue reading ➞
Post image

How to Fill an Array with Initial Values in JavaScript

Posted October 19, 2021
How to initialize an array with initial values in JavaScript using array.fill(), Array.from(), or array.map()
Continue reading ➞
Post image

Covariance and Contravariance in TypeScript

Posted October 14, 2021
Covariance and contravariance are the concepts behind the subtyping of composable types.
Continue reading ➞
Post image

What are Higher-Order Functions in JavaScript?

The higher-order function accept as arguments or return other functions.
Continue reading ➞
Post image

How to Use TypeScript with React Components

Posted September 29, 2021
How to use TypeScript to type React components: validate props, mark props as optional.
Continue reading ➞
Post image

Index Signatures in TypeScript

Posted September 22, 2021
Index signatures in TypeScript let's you annotate objects of unknown structure.
Continue reading ➞
prev
1234
[...]
16next