Skip to content

Instantly share code, notes, and snippets.

View sonnt-altplus's full-sized avatar

Nguyen Thai Son sonnt-altplus

View GitHub Profile
@sonnt-altplus
sonnt-altplus / convert_kana.js
Created February 15, 2016 04:04 — forked from kamiaka/convert_kana.js
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";