【文件属性】:
文件名称:startswith:检查字符串是否以某个字符串开头,可以忽略大小写
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-22 18:52:58
JavaScript
以。。开始
检查字符串是否以某个字符串开头,可以忽略大小写
安装
与一起安装:
$ component install sk7/startswith
原料药
str.endsWith(str)
"123blah".endsWith("blah") -> true
"123blah".endsWith("Blah") - > false
"123blah".endsWith("123") - > false
str.endsWithIgnoreCase(str)
"123blah".endsWithIgnoreCase("blah") -> true
"123blah".endsWithIgnoreCase("Blah") -> true
"123blah".endsWithIgnoreCase("123") - > false
执照
MIT许可证(MIT)
版权所有(c)
【文件预览】:
startswith-master
----.gitignore(17B)
----component.json(305B)
----Readme.md(2KB)
----package.json(294B)
----index.js(459B)
----Makefile(166B)