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