mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
11 lines
282 B
TypeScript
11 lines
282 B
TypeScript
/**
|
|
* @param {string} value
|
|
* @returns {string}
|
|
*/
|
|
export function swapLettersCase(value: string): string {
|
|
return value
|
|
.split('')
|
|
.map((letter: string) => (letter === letter.toUpperCase() ? letter.toLowerCase() : letter.toUpperCase()))
|
|
.join('');
|
|
}
|