mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-22 20:26:06 +00:00
Refactor: Improve docstring for lowercaseTrim utils function (#3002)
This commit is contained in:
committed by
GitHub
parent
6822dc77d4
commit
f3341ddf5f
+6
-1
@@ -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();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user