How’s it going, I'm a Adam, a Full-Stack Engineer, actively searching for work. I'm all about JavaScript. And Frontend but don't let that fool you - I've also got some serious Backend skills.
Location
City of Bath, UK 🇬🇧
Education
10 plus years* active enterprise development experience and a Fine art degree 🎨
A little note on the typescript in this file, it might as well not be here because it's better to state what is expected then guard against it rather than fall through to runtime
Yup, good point, my bad. I found this bug on a typescript project so I though to include it as TS, but I simplified the example so much that it does not make sense to have it now!
I will fix the type to make it more relevant (I've removed the any type actually).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A little note on the typescript in this file, it might as well not be here because it's better to state what is expected then guard against it rather than fall through to runtime
Yup, good point, my bad. I found this bug on a typescript project so I though to include it as TS, but I simplified the example so much that it does not make sense to have it now!
I will fix the type to make it more relevant (I've removed the any type actually).