Executes a type guard for the number type prior to testing a condition that requires an
input of number type, returning true only if both the type check and condition pass.
Remarks
This is especially useful in pipelines where the TS type checker would not detect that a type
guard had been applied using other alternatives.
Executes a type guard for the
numbertype prior to testing aconditionthat requires an input ofnumbertype, returningtrueonly if both the type check andconditionpass.Remarks
This is especially useful in pipelines where the TS type checker would not detect that a type guard had been applied using other alternatives.
Example