Constructor
new Version(major, minor, patch)
- Source:
- Since:
- 1.0.0
- Copyright:
- schukai GmbH
Parameters:
Name | Type | Description |
---|---|---|
major |
||
minor |
||
patch |
Throws:
-
major is not a number
-
minor is not a number
-
patch is not a number
Methods
compareTo(version) → {number}
- Source:
returns 0 if equal, -1 if the object version is less and 1 if greater then the compared version
Parameters:
Name | Type | Description |
---|---|---|
version |
string | Version | Version to compare |
Returns:
- Type
- number
toString() → {string}
- Source:
Returns:
- Type
- string