(string) camelize (delimiterx)
snake_case や train-case など、区切り子表記された複合語の文字列を camelCase に変換します。
Parameters:
name | type | default | caption |
---|---|---|---|
delimiter | string | '_' | Delimiter. |
Returns:
- (string) — camelCase string.
Author:
- StewEucen
Since:
- Version 1.0.0
Aliases:
- toCamelCase
- toNerdCaps
Examples:
"snake_case".camelize() //=> "snakeCase"
"get_utc__day".camelize() //=> "getUTCDay"
"ui__view".camelize() //=> "ui_View"
"xml__html__request".camelize() //=> "xml_HTMLRequest"