uppercaseFirst method

String uppercaseFirst()

문자열의 첫 글자를 대문자로 변환합니다.

Implementation

String uppercaseFirst() {
  if (isEmpty) {
    return this;
  }
  return this[0].toUpperCase() + substring(1);
}