Skip to content

Commit

Permalink
Refactor: Improve docstring for lowercaseTrim utils function (anuragh…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored Jul 28, 2023
1 parent 6822dc7 commit f3341dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

/**
Expand Down

0 comments on commit f3341dd

Please sign in to comment.