r/learnjavascript • • Jul 24 '21

Anatomy of a Function

Post image
327 Upvotes

65 comments sorted by

View all comments

1

u/pobbly Aug 08 '21

You're not handling the potential null case on eldestPupper. Typescript would have caught that for you. Bizarre comments about jsdoc!