Java
- 2文字目以降の大文字は大文字のまま
- org.apache.commons.lang3.StringUtils.capitalize
StringUtils.capitalize("cAt") = "CAt"
JavaScript
- 2文字目以降の大文字は小文字になる
- lodash.capitalize
_.capitalize('cAt');
// => 'Cat'
Go to list of users who liked
More than 1 year has passed since last update.
StringUtils.capitalize("cAt") = "CAt"
_.capitalize('cAt');
// => 'Cat'
Register as a new user and use Qiita more conveniently
Go to list of users who liked