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 45325b6 commit fa465bdCopy full SHA for fa465bd
Codewars/AbbrevName.js
@@ -0,0 +1,5 @@
1
+// https://www.codewars.com/kata/abbreviate-a-two-word-name/javascript
2
+
3
+function abbrevName(name) {
4
+ return name.split(' ').map(x => x.substr(0, 1).toUpperCase()).join('.');
5
+}
0 commit comments