Skip to content

Commit a9b94e8

Browse files
committed
Initial commit
1 parent 587bced commit a9b94e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

codewarsChallenge1002.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
18
function isVow(a){
29
return a.map(x =>{
310
if(/[aeiou]/.test(String.fromCharCode(x))){

0 commit comments

Comments
 (0)