Notes
Over the years I’ve published a dev notes — some more noteworthy than others.
Here are some of my personal favorites. I hope you find something useful among them.
One of the best use cases for JavaScript generators
Read this article →How to find all interactive elements in a given context using JavaScript or TypeScript.
Read this article →Easy way to mock a fake request with a random delay in JavaScript.
Read this article →Convert an array to a keyed object (object map) using a custom attribute getter function in TypeScript for fast O(1) lookups.
Read this article →A simple utility function to create a delay between function calls in JavaScript.
Read this article →How to easily use the Intersection Observer API in JavaScript to detect when an element enters or exits the viewport.
Read this article →