source:
node_modules/es-toolkit/dist/string/pascalCase.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 229 bytes | |
| Line | |
|---|---|
| 1 | import { capitalize } from './capitalize.mjs'; |
| 2 | import { words } from './words.mjs'; |
| 3 | |
| 4 | function pascalCase(str) { |
| 5 | const words$1 = words(str); |
| 6 | return words$1.map(word => capitalize(word)).join(''); |
| 7 | } |
| 8 | |
| 9 | export { pascalCase }; |
Note:
See TracBrowser
for help on using the repository browser.
