camelCase() function
str을 camel case로 변환합니다. 공백·구두점·숫자·대소문자 경계·두문자어를 기준으로 단어를 분리합니다.
Signature:
typescript
function camelCase(str: string): string;Example
ts
camelCase("foo bar"); // "fooBar"
camelCase("foo-bar"); // "fooBar"
camelCase("foo_bar"); // "fooBar"
camelCase("FooBar"); // "fooBar"
camelCase("XMLHttpRequest"); // "xmlHttpRequest"