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.
Symbols are unique and immutable values that can be used as keys for object properties. They are often used to add metadata to objects, to create non-colliding property keys, or to define constants.
Read this article →One of the best use cases for JavaScript generators
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 →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 →