文件名称:ends-with-any:如果给定的字符串或数组以任何给定的子字符串结尾,则返回true
文件大小:5KB
文件格式:ZIP
更新时间:2024-06-11 09:16:00
JavaScript
以任何结尾 如果给定的字符串或数组以任何给定的子字符串结尾,则返回true。 安装 用安装 $ npm i ends-with-any --save 用法 var endsWithAny = require ( 'ends-with-any' ) ; 真的 以下所有返回true : endsWithAny ( 'abc' , 'c' ) ; endsWithAny ( 'xyz' , 'z' ) ; endsWithAny ( [ 'a' , 'b' , 'c' ] , 'c' ) ; endsWithAny ( [ 'x' , 'y' , 'z' ] , 'z' ) ; endsWithAny ( 'abc' , [ 'a' , 'z' , 'c' ] ) ; endsWithAny ( 'xyz' , [ 'x' , 'y' , 'z' ] ) ; endsWithAny (
【文件预览】:
ends-with-any-master
----.gitignore(145B)
----README.md(2KB)
----.verb.md(1KB)
----LICENSE(1KB)
----.gitattributes(128B)
----.jshintrc(282B)
----package.json(830B)
----index.js(655B)
----test.js(2KB)
----.travis.yml(151B)
----.editorconfig(415B)