Skip to content

Instantly share code, notes, and snippets.

View sonnt-altplus's full-sized avatar

Nguyen Thai Son sonnt-altplus

View GitHub Profile
@kamiaka
kamiaka / convert_kana.js
Last active March 7, 2025 06:35
JS Convert "Kana" one from another (zen-kaku, han-kaku and more)
/**
* Convert "Kana" one from another
* (zen-kaku, han-kaku and more)
*
* @param string str
* @param string option (optionaly)
* @return string converted string
*/
function convert_kana (str, option) {
option = option || "KV";