source: node_modules/es-toolkit/dist/string/upperCase.js@ ba17441

Last change on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 437 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const words = require('./words.js');
6
7function upperCase(str) {
8 const words$1 = words.words(str);
9 let result = '';
10 for (let i = 0; i < words$1.length; i++) {
11 result += words$1[i].toUpperCase();
12 if (i < words$1.length - 1) {
13 result += ' ';
14 }
15 }
16 return result;
17}
18
19exports.upperCase = upperCase;
Note: See TracBrowser for help on using the repository browser.