Refactor: Improve docstring for lowercaseTrim utils function (#3002)

This commit is contained in:
Alexandr Garbuzov
2023-07-28 21:09:31 +03:00
committed by GitHub
parent 6822dc77d4
commit f3341ddf5f
+6 -1
View File
@@ -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();
/**