Articles about JavaScript

Read juicy posts about JavaScript and its surrounding ecosystem

JavaScript proposal array find from last

JavaScript is going to support natively spotting an array item while using a condition, starting from the right side

Read full story 2 min read

JavaScript proposal array grouping

Grouping array items soon will be supported natively by vanilla JavaScript itself

Read full story 2 min read

Destructuring arrays in JavaScript

We can destructure an array as an object and reach pretty nested items quite easily

Read full story 2 min read

Install multiple major versions of a node module with npm

Having multiple major versions of a package in a project might sound a little tricky but it is definitely doable.

Read full story 3 min read

Turn off your browser and try red, green & refactor pattern (part 3)

Every now and then, I come across mentally exhausted and frustrated web developers who try to test their work by clicking here and there in the UI. Most of the times something is still missing so they have to repeat this routine yet another time. My proposal is to simply turn off the browser.

Read full story 4 min read

Turn off your browser and try red, green & refactor pattern (part 2)

Every now and then, I come across mentally exhausted and frustrated web developers who try to test their work by clicking here and there in the UI. Most of the times something is still missing so they have to repeat this routine yet another time. My proposal is to simply turn off the browser.

Read full story 5 min read

Using any in TypeScript gives us a false sense of safety

TypeScript is meant to make JavaScript stronger and safer by helping us stay type-safe while using it. Using any defeats this purpose and can easily become the root evil the more we keep on using it.

Read full story 6 min read

ES2020 - String.prototype.replaceAll

For years we couldn't replace all instances of a substring in a string without the use of a global regexp. This is the issue that String.prototype.replaceAll is going to solve.

Read full story 3 min read

ES2020 - Promise.any

When we need to know whether at least 1 promise got resolved among an iterable of Promise objects, Promise.any() is the solution we are asking for.

Read full story 2 min read

ES2020 - Access global scope with globalThis across different environments

Accessing global object across different environments has been a challenging task for many years in the JavaScript community. This is exactly what globalThis is trying to tackle.

Read full story 2 min read

Newsletter

Get notified about latest posts and updates once a week!!