mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 17:50:39 +08:00
Update capitalization style of function name to align with convention
This commit is contained in:
@ -11,11 +11,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UpperCaseConversion takes any case-style string and converts it to the uppercase-style string.
|
* upperCaseConversion takes any case-style string and converts it to the uppercase-style string.
|
||||||
* @param {string} inputString Any case style string
|
* @param {string} inputString Any case style string
|
||||||
* @returns {string} Uppercase string
|
* @returns {string} Uppercase string
|
||||||
*/
|
*/
|
||||||
const UpperCaseConversion = (inputString) => {
|
const upperCaseConversion = (inputString) => {
|
||||||
// Take a string and split it into characters.
|
// Take a string and split it into characters.
|
||||||
const newString = inputString.split('').map(char => {
|
const newString = inputString.split('').map(char => {
|
||||||
// Get a character code by the use charCodeAt method.
|
// Get a character code by the use charCodeAt method.
|
||||||
@ -32,4 +32,4 @@ const UpperCaseConversion = (inputString) => {
|
|||||||
return newString.join('')
|
return newString.join('')
|
||||||
}
|
}
|
||||||
|
|
||||||
export { UpperCaseConversion }
|
export { upperCaseConversion }
|
||||||
|
Reference in New Issue
Block a user