From 0acba0eac4a273a555ca5af316097601bbe1492f Mon Sep 17 00:00:00 2001 From: perf3ct Date: Sat, 9 Nov 2024 22:23:02 +0000 Subject: [PATCH] add docstring for func --- src/public/app/services/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/public/app/services/utils.js b/src/public/app/services/utils.js index fcc00229c..0544c8622 100644 --- a/src/public/app/services/utils.js +++ b/src/public/app/services/utils.js @@ -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; }