source: node_modules/es-toolkit/dist/string/upperCase.mjs@ a762898

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
Line 
1import { words } from './words.mjs';
2
3function 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
15export { upperCase };
Note: See TracBrowser for help on using the repository browser.