Fixing non compliant files (Ciphers, Conversions and Data Structures)

This commit is contained in:
Juliano Nunes
2020-05-03 21:26:52 -03:00
parent 14bab1b931
commit 2e0bd65b0c
8 changed files with 293 additions and 264 deletions

View File

@ -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
}
}