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.
Convert an array to a keyed object using a custom attribute getter function in TypeScript.
Read this article →How to find all interactive elements in a given context using JavaScript or TypeScript.
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 →A simple utility function to create a delay between function calls in JavaScript.
Read this article →Easy way to mock a fake request with a random delay in JavaScript.
Read this article →Learn how to work with element attributes in JavaScript, including getting, setting, and removing attributes from HTML elements.
Read this article →