Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getShenMu(word) {
/**
* 声母数组
*/
var shenMu = pinyin(word, {
style: pinyin.STYLE_INITIALS, // 设置拼音风格
segment: true,
heteronym: true
})
return shenMu
}
/**