"Knowledge" category

Get the last items of an array using array.slice()

I never knew the slice method takes negative integers!

How to kill the process currently using a given port on Windows

A quick trick to kill the process currently using a port on Windows - npx kill-port 4200

Top-level await

How to use top-level await in ES Modules without all of the crazy hack