mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +08:00
add docstring for func
This commit is contained in:
parent
48d53e276e
commit
0acba0eac4
@ -569,6 +569,12 @@ function compareVersions(v1, v2) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compares two semantic version strings and returns `true` if the latest version is greater than the current version.
|
||||||
|
* @param {string} latestVersion
|
||||||
|
* @param {string} currentVersion
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
function isUpdateAvailable(latestVersion, currentVersion) {
|
function isUpdateAvailable(latestVersion, currentVersion) {
|
||||||
return compareVersions(latestVersion, currentVersion) > 0;
|
return compareVersions(latestVersion, currentVersion) > 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user