keywords-array:将一串单词转换为数组

时间:2021-05-29 07:57:59
【文件属性】:
文件名称:keywords-array:将一串单词转换为数组
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-29 07:57:59
JavaScript 关键字数组 将一串单词转换为数组。 安装 $ npm install keywords-array 例子 var toArray = require ( '../' ) ; // by default splits on spaces or commas var wordArray = toArray ( 'this is, all, a string' ) ; // => ['this', 'is', 'all', 'a', 'string'] // split on something else: var otherArray = toArray ( 'this is, all, a string' , / custom / ) ;
【文件预览】:
keywords-array-master
----example()
--------index.html(158B)
--------example.js(125B)
----.editorconfig(197B)
----.gitignore(2KB)
----index.js(311B)
----readme.md(385B)
----package.json(433B)

网友评论