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 acondition
that requires an input ofArray<unknown>
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