Skip to content

Commit a8394f7

Browse files
committed
Refactor: Improve docstring for lowercaseTrim utils function (anuraghazra#3002)
1 parent 908e08d commit a8394f7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/common/utils.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,12 @@ const measureText = (str, fontSize = 10) => {
396396
);
397397
};
398398

399-
/** @param {string} name */
399+
/**
400+
* Lowercase and trim string.
401+
*
402+
* @param {string} name String to lowercase and trim.
403+
* @returns {string} Lowercased and trimmed string.
404+
*/
400405
const lowercaseTrim = (name) => name.toLowerCase().trim();
401406

402407
/**

0 commit comments

Comments
 (0)