packages/fbjs/src/unicode/UnicodeCJK.js
function hiraganaToKatakana(str) {
  if (!hasKana(str)) {
    return str;
  }
  return str.split('').map(charCodeToKatakana).join('');
}
function hiraganaToKatakana(str) {
  if (!hasKana(str)) {
    return str;
  }
  return str.split('').map(charCodeToKatakana).join('');
}
function hiraganaToKatakana ( str ) { if ( ! hasKana ( str ) ) { return str ; } return str . split ( '' ) . map ( charCodeToKatakana ) . join ( '' ) ; }
Replace any Hiragana character with the matching Katakana

@param {string} str
@output {string}
Replace any Hiragana character with the matching Katakana