JSFiddle - React, Tailwind, and code Playground
TypeScript
function a(value: number) {
return b(value);
}
function b(value: number) {
return c(value);
}
function c(value: number) {
if (value === 0) {
throw new Error('Failed !');
}
return value;
}
a(1);