|
Last change
on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
333 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | import { words } from './words.mjs';
|
|---|
| 2 |
|
|---|
| 3 | function upperCase(str) {
|
|---|
| 4 | const words$1 = words(str);
|
|---|
| 5 | let result = '';
|
|---|
| 6 | for (let i = 0; i < words$1.length; i++) {
|
|---|
| 7 | result += words$1[i].toUpperCase();
|
|---|
| 8 | if (i < words$1.length - 1) {
|
|---|
| 9 | result += ' ';
|
|---|
| 10 | }
|
|---|
| 11 | }
|
|---|
| 12 | return result;
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | export { upperCase };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.