mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	add docstring for func
This commit is contained in:
		| @@ -569,6 +569,12 @@ function compareVersions(v1, v2) { | ||||
|     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) { | ||||
|     return compareVersions(latestVersion, currentVersion) > 0; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user