Package Exports
- sort-word
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sort-word) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sort-word
npm install sort-word -S
use
import SortWord from 'sort-word'
第三参数为true时 添加**热门**项,默认添加传入数组前10个
不需要**热门**项,则不需要传第三个参数
let newList = new SortWord(list, value, true)