compare('10.1.8', '10.0.4', '>') // truecompare('10.0.1', '10.0.1', '=') // truecompare('10.1.1', '10.2.2', '<') // truecompare('10.1.1', '10.2.2', '<=') // truecompare('10.1.1', '10.2.2', '>=') // false
Whether the semantic versioning of v1 and v2 compared via an operator is valid.
v1
v2
operator
The first semantic version to compare.
The second semantic version to compare.
An equality and/or inequality string.
Generated using TypeDoc
Example
Returns
Whether the semantic versioning of
v1
andv2
compared via anoperator
is valid.