| | |
| | | /** |
| | | The locale parameter indicates the locale to be used to convert to upper/lower case according to any locale-specific case mappings. If multiple locales are given in an array, the best available locale is used. |
| | | |
| | | Setting `locale: false` ignores the platform locale and uses the [Unicode Default Case Conversion](https://unicode-org.github.io/icu/userguide/transforms/casemappings.html#simple-single-character-case-mapping) algorithm. |
| | | |
| | | Default: The host environment’s current locale. |
| | | |
| | | @example |
| | |
| | | //=> 'loremİpsum' |
| | | ``` |
| | | */ |
| | | readonly locale?: string | readonly string[]; |
| | | readonly locale?: false | string | readonly string[]; |
| | | } |
| | | } |
| | | |
| | |
| | | camelCase('Foo-Bar'); |
| | | //=> 'fooBar' |
| | | |
| | | camelCase('розовый_пушистый_единороги'); |
| | | //=> 'розовыйПушистыйЕдинороги' |
| | | camelCase('розовый_пушистый_единорог'); |
| | | //=> 'розовыйПушистыйЕдинорог' |
| | | |
| | | camelCase('Foo-Bar', {pascalCase: true}); |
| | | //=> 'FooBar' |