throw ↔ JS Keyword Statement to stop executing current function with user-defined Exception
References
Silent Fail↔ Errorthrown in async code MISSING.catch()"noImplicitAny": true↔ tothrowException when any Parameter inferred asany"strictNullChecks": true↔ tothrowException when access Variable which potentially benull/undefined"noImplicitReturns": true↔ tothrowwhen any function branch missing explicit return (when at least one branch has explicit return; else it's okay to omit)