Appearance
拆分字符串为单词数组。
import { words } from '@base-web-kits/base-tools-ts'; words('fred, barney, & pebbles'); // 结果: ['fred', 'barney', 'pebbles']
string (string)
pattern (RegExp|string)
(Array)