What happens when passing a triangle to the shape union area function?

Estimated read time 1 min read

Post Contenthttps://www.youtube.com/shorts/FP3q1wYzQKU

​ A small TypeScript pattern that often slips through reviews. You define a union, handle a couple of cases, and move on. Later, a new variant gets introduced. Nothing crashes immediately. But something is off. What happens when this function is called?

Check it out and share your answer in the comments.

Subscribe to Google for Developers → https://goo.gle/developers

Speakers: Marily Nika   Read More Google for Developers 

You May Also Like

More From Author