Code Snippets

100
Code Snippets
Open External Links in New Window

Open External Links in New Window

When users click on these external links, it can be frustrating to navigate away from the current website. One solution to this problem is to open external links in new windows or tabs.

Type Assertions in TypeScript

Type Assertions in TypeScript

Learn how to use type assertions in TypeScript to explicitly cast variables to specific types when their types are not inferred correctly, ensuring type safety in your code.

You’ve successfully subscribed to Brandon Himpfen
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.