Hey friends, it’s TypeScript challenge time! This generic function should return the last item of any array. It looks simple, but something's not working as expected here. Can you find the bug AND explain why TypeScript isn't catching it? Bonus points if you can propose a fix that makes it completely type-safe! Share your skills in the comments!
Subscribe to Google for Developers → https://goo.gle/developers
Speakers: M.E. Francis
Subscribe to Google for Developers → https://goo.gle/developers
Speakers: M.E. Francis
- Category
- Project
- Tags
- Google, developers, pr_pr: Google for Developers;
Sign in or sign up to post comments.
Be the first to comment