Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/melonjs/melonJS
/ compare
Method
compare
packages/melonjs/src/utils/semver.ts:53–59 ·
view source on GitHub ↗
(other: SemVer)
Source
from the content-addressed store, hash-verified
51
}
52
53
compare(other: SemVer) {
54
if
(other.asString() === this.asString()) {
55
return
0;
56
}
57
58
return
this.compareMain(other);
59
}
60
61
compareMain(other: SemVer) {
62
return
(
Callers
1
compare
Function · 0.80
Calls
2
asString
Method · 0.95
compareMain
Method · 0.95
Tested by
no test coverage detected