Stop surprises! Use assertion functions to control inputs.

Published: 14 November 2022
on channel: TypeScript TV with Benny
637
23

Functions that throw an error when something unexpected happens are called assertion functions.

My FREE programming apps:
https://apps.apple.com/app/id659282498
https://play.google.com/store/apps/de...

My FREE TypeScript Course:
https://typescript.tv/

Timeline:
00:07 Assert Module in Node.js
03:43 Assertion Functions in TypeScript

Resources:
➜ https://typescript.tv/errors/
➜ https://www.typescriptlang.org/docs/h...
➜ https://blog.logrocket.com/assertion-...

Follow TypeScript TV:
🌐 https://typescript.tv
🐦   / typescripttv  
📺    / typescripttv​  

Hashtags:
#TypeScript #JavaScript #webdevelopment