We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23de520 commit 517879aCopy full SHA for 517879a
701-800/709-to-lower-case.js
@@ -0,0 +1,22 @@
1
+
2
+const isUpperCase = char => {
3
+ let ascii = char.charCodeAt(0);
4
5
+ if (ascii >= 65 && ascii <= 90) {
6
+ return true;
7
+ }
8
9
+ return false
10
+}
11
12
+const toLower = char => {
13
14
15
+ ascii = String.fromCharCode(ascii + 32);
16
17
+ return ascii
18
19
20
+var toLowerCase = function (str) {
21
+ return str.split("").map(s => isUpperCase(s) ? toLower(s) : s).join("");
22
+};
0 commit comments