camelCase() function
str をキャメルケースに変換します。空白・句読点・数字・大文字小文字の境界・頭字語を基準に単語を分割します。
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"