starts-with-any:如果给定的字符串或数组以任何给定的子字符串开头,则返回true

时间:2021-05-22 13:55:29
【文件属性】:
文件名称:starts-with-any:如果给定的字符串或数组以任何给定的子字符串开头,则返回true
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-22 13:55:29
JavaScript 从任何开始 如果给定的字符串或数组以任何给定的子字符串开头,则返回true。 安装 用安装 $ npm i starts-with-any --save 用法 var startsWithAny = require ( 'starts-with-any' ) ; 真的 以下所有返回true : startsWithAny ( 'abc' , 'a' ) ; startsWithAny ( 'xyz' , 'x' ) ; startsWithAny ( [ 'a' , 'b' , 'c' ] , 'a' ) ; startsWithAny ( [ 'x' , 'y' , 'z' ] , 'x' ) ; startsWithAny ( 'abc' , [ 'a' , 'z' , 'c' ] ) ; startsWithAny ( 'xyz' , [ 'x' , 'y' , 'z' ]
【文件预览】:
starts-with-any-master
----.travis.yml(151B)
----index.js(669B)
----test.js(2KB)
----package.json(857B)
----LICENSE(1KB)
----.gitignore(145B)
----.verb.md(1KB)
----README.md(2KB)
----.jshintrc(282B)
----.editorconfig(415B)
----.gitattributes(128B)

网友评论