Web Development

How to sort a Set in JavaScript

ES6 introduced the set data structure in JavaScript. But sets are not ordered abstract data structures. So there is no…

2 years ago

Debugging CSS scroll using one simple style

I have been doing a lot of complicated front-end work off lately and that always brings me back to the…

2 years ago

CSS :has a parent selector now

CSS now includes a :has selector that allows us to apply styles on the basis of what is happening inside…

2 years ago

Getting the value of an input element as a number without parseInt

Every once in a while, you come across something and you think, how did I not know this earlier? valueAsNumber is…

2 years ago

Using Font Awesome with React

Font Awesome is a great resource to use various types of icons in your project including well-known social media icons…

2 years ago

How to write comments in React (JSX)?

I was recently trying to comment out some logic inside my JSX to add context about what a potentially complex…

2 years ago

How to debug better using $ sign shortcuts in Chrome devtools

Chrome devtools has a collection of utilities that can be used to perform common debugging tasks and make our life…

3 years ago

Deep copying in JavaScript using structuredClone

For as long as anyone can remember, deep copying in JavaScript was not a built-in feature and we had to…

3 years ago

Chrome devtools: Using logpoints for logging messages directly

When it comes to debugging JavaScript in Chrome devtools, there are two different camps: the console.log fans and the debugger/breakpoint…

3 years ago

How to prevent npm install for unsupported Node.js versions

npm configurations allow us to do quite a lot of nifty things. One of them is to allow the project…

3 years ago
Advertisements