compareBuild
external fun compareBuild(a: String, b: String, optionsOrLoose: Boolean = definedExternally): Int(source)
external fun compareBuild(a: String, b: String, optionsOrLoose: Options = definedExternally): Int(source)
external fun compareBuild(a: String, b: SemVer, optionsOrLoose: Boolean = definedExternally): Int(source)
external fun compareBuild(a: String, b: SemVer, optionsOrLoose: Options = definedExternally): Int(source)
external fun compareBuild(a: SemVer, b: String, optionsOrLoose: Boolean = definedExternally): Int(source)
external fun compareBuild(a: SemVer, b: String, optionsOrLoose: Options = definedExternally): Int(source)
external fun compareBuild(a: SemVer, b: SemVer, optionsOrLoose: Boolean = definedExternally): Int(source)
external fun compareBuild(a: SemVer, b: SemVer, optionsOrLoose: Options = definedExternally): Int(source)
Compares two versions including build identifiers (the bit after +
in the semantic version string).
Sorts in ascending order when passed to Array.sort()
.
Return
0
ifv1
==v2
1
ifv1
is greater-1
ifv2
is greater.
Since
6.1.0