Variable compareConst
Type Declaration
- (v1: string, v2: string, operator: CompareOperator): boolean
- Parameters- v1: stringFirst version to compare 
- v2: stringSecond version to compare 
- operator: CompareOperatorAllowed arithmetic operator to use 
 - Returns boolean- trueif the comparison between the firstVersion and the secondVersion satisfies the operator,- falseotherwise.
- v1: string
 
Compare semver version strings using the specified operator.