Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

27
node_modules/es-toolkit/dist/string/upperCase.mjs generated vendored Normal file
View File

@@ -0,0 +1,27 @@
import { words } from "./words.mjs";
//#region src/string/upperCase.ts
/**
* Converts a string to upper case.
*
* Upper case is the naming convention in which each word is written in uppercase and separated by an space ( ) character.
*
* @param {string} str - The string that is to be changed to upper case.
* @returns {string} - The converted string to upper case.
*
* @example
* const convertedStr1 = upperCase('camelCase') // returns 'CAMEL CASE'
* const convertedStr2 = upperCase('some whitespace') // returns 'SOME WHITESPACE'
* const convertedStr3 = upperCase('hyphen-text') // returns 'HYPHEN TEXT'
* const convertedStr4 = upperCase('HTTPRequest') // returns 'HTTP REQUEST'
*/
function upperCase(str) {
const words$1 = words(str);
let result = "";
for (let i = 0; i < words$1.length; i++) {
result += words$1[i].toUpperCase();
if (i < words$1.length - 1) result += " ";
}
return result;
}
//#endregion
export { upperCase };