Skip to content

lvvlan/pinyin-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

汉字拼音首字母排序

以汉字拼音首字母排序

npm

安装

npm install pinyin-sort

用法

import PYS from 'pinyin-sort'
console.log(PYS(['1我', '不b', 'Z', '知道', '玩', '1']))
//   [ { pinyin: 'b', value: [ '不b' ] },
//     { pinyin: 'w', value: [ '玩' ] },
//     { pinyin: 'z', value: [ 'Z', '知道' ] },
//     { pinyin: '其他', value: [ '1我', '1' ] } ]

许可证

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published