mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-22 12:01:47 +08:00
Fixing non compliant files (Ciphers, Conversions and Data Structures)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Check if the Character is letter or not
|
||||
* @param {String} character - character to check
|
||||
* @param {String} str - character to check
|
||||
* @return {object} An array with the character or null if isn't a letter
|
||||
*/
|
||||
function isLetter (str) {
|
||||
@ -13,10 +13,10 @@ function isLetter (str) {
|
||||
* @return {Boolean} result of the checking
|
||||
*/
|
||||
function isUpperCase (character) {
|
||||
if (character == character.toUpperCase()) {
|
||||
if (character === character.toUpperCase()) {
|
||||
return true
|
||||
}
|
||||
if (character == character.toLowerCase()) {
|
||||
if (character === character.toLowerCase()) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user