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
number
type prior to testing acondition
that requires an input ofnumber
type, returningtrue
only if both the type check andcondition
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.
Example