Jonny Bits
optoelectro.bsky.social
Jonny Bits
@optoelectro.bsky.social
Just some guy who writes code
You're right, that works and is a big improvement, thanks!
November 10, 2024 at 1:26 PM
This week I found myself needing to come up with a function returning an object which would be strongly typed based on a property from the objects from the input array.
This is what I ended up with, the only gotcha is needing 'as const' on the the input array. #TypeScript
November 9, 2024 at 5:52 PM
Checkmate, JavaScript
October 30, 2024 at 8:58 AM