Variable compareConst
Type Declaration
- (v1: string, v2: string, operator: CompareOperator): boolean
Parameters
- v1: string
First version to compare
- v2: string
Second version to compare
- operator: CompareOperator
Allowed 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.