Function: isThrowOnlyConsequent()
isThrowOnlyConsequent(
node:Readonly<Statement>):boolean
Defined in: _internal/throw-consequent.ts:40
Check whether an if consequent contains only a throw statement.
Parametersโ
nodeโ
Readonly<Statement>
Consequent statement to inspect.
Returnsโ
boolean
true for throw ... and { throw ... } shapes.