Skip to content

Commit 31b4ae8

Browse files
changed function for more efficiency
1 parent 21a2d72 commit 31b4ae8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sprint-2/3-mandatory-implement/2-cases.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// Use the MDN string documentation to help you find a solution
1616
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
1717
function upperSnakeCase(str){
18-
return str.toUpperCase().split(" ").join("_")
18+
return str.toUpperCase().replaceAll(" ","-")
1919
}
2020

21+

0 commit comments

Comments
 (0)