From f3341ddf5f797d71c0f6aab3b56d88b6063d1049 Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov Date: Fri, 28 Jul 2023 21:09:31 +0300 Subject: [PATCH] Refactor: Improve docstring for lowercaseTrim utils function (#3002) --- src/common/utils.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/utils.js b/src/common/utils.js index 732d685f..6f065cb0 100644 --- a/src/common/utils.js +++ b/src/common/utils.js @@ -396,7 +396,12 @@ const measureText = (str, fontSize = 10) => { ); }; -/** @param {string} name */ +/** + * Lowercase and trim string. + * + * @param {string} name String to lowercase and trim. + * @returns {string} Lowercased and trimmed string. + */ const lowercaseTrim = (name) => name.toLowerCase().trim(); /**