Executes a type guard for the string type prior to testing a condition that requires an
input of string 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
stringtype prior to testing aconditionthat requires an input ofstringtype, 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