We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 587bced commit a9b94e8Copy full SHA for a9b94e8
codewarsChallenge1002.js
@@ -1,3 +1,10 @@
1
+/**
2
+ * Checks if elements in an array represent vowel character codes and replaces them with the corresponding vowel character.
3
+ *
4
+ * @param {number[]} a - An array of numbers representing character codes.
5
+ * @returns {(number|string)[]} A new array where numbers corresponding to vowels are replaced by their character, others remain unchanged.
6
+ */
7
+
8
function isVow(a){
9
return a.map(x =>{
10
if(/[aeiou]/.test(String.fromCharCode(x))){
0 commit comments