String.prototype.startsWith
v1.0.1
String.prototype.startsWith polyfill String.prototype.startsWith方法的稳健且优化的多填充6。
该软件包实现了ES-SHIM API接口。它在ES3支持的环境中起作用,并符合规格。
还有其他用于String.prototype.startsWith多填充。
通过NPM:
npm install string.prototype.startswith然后,在node.js中:
var startsWith = require ( 'string.prototype.startswith' ) ;在浏览器中:
< script src =" https://bundle.run/string.prototype.startswith " > </ script >注意:建议您使用
npm等软件包管理器安装此模块,因为从cdn(例如bundle.run)加载多个多填充物将导致重复的代码。
polyfills + for String.prototype.endsWith and String.prototype.contains也可以使用polyfills +测试套件。
在main分支上,凸起package.json中的版本号:
npm version patch而不是patch ,请根据需要使用minor或major 。
请注意,这会产生一个git commit + tag。
推动发布提交和标签:
git push && git push --tags然后,我们的CI自动将新版本发布到NPM。
| Mathias Bynens |
该多填充可根据MIT许可获得。