All Questions
1 question
0votes
2answers
759views
Should I use unnecessary function for readability sake
I am implementing if/else statement, by using function "inCase" to make it more readable: const size = 'small' const equals = str1 => str2 => str2 === str1 const inCase = (obj) => ...