Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| const countVowels = (s: string) => { let v = 0; let ss = s.split(''); ss.forEach(c => { if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') { v++; } }); return v; } |
| var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | |
| if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | |
| if (ar || !(i in from)) { | |
| if (!ar) ar = Array.prototype.slice.call(from, 0, i); | |
| ar[i] = from[i]; | |
| } | |
| } | |
| return to.concat(ar || Array.prototype.slice.call(from)); | |
| }; | |
| function caesarCipher(string, shiftValue) { |