Sławek Jaskulski
I'm a clown (. ❛ ᴗ ❛.)Creating interactive and immersive software with a focus on detail and utilizing cutting-edge design techniques.
Snippets
Collecting code snippets to copy and paste
Create Objects from Arrays
JavaScript · May 10, 2022This function lets you create an object made up of an array of objects with an 'id' key and any number of additional properties.
Create an Interval Hook
React · Feb 28, 2022To create an interval hook, pass in a function to be called every interval with the args passed in the hook.
Convert a Tuple to a Union Type
TypeScript · Jan 30, 2022TypeScript lets you create a union type from a tuple type. That's useful when you want to make a type that's a union of multiple types.