obsolete-string-at:针对ECMAScript的String.prototype.at提案的功能强大且经过优化的ES3兼容polyfill-基于https

时间:2021-05-12 02:43:49
【文件属性】:
文件名称:obsolete-string-at:针对ECMAScript的String.prototype.at提案的功能强大且经过优化的ES3兼容polyfill-基于https
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-12 02:43:49
JavaScript 注意:该建议未纳入ECMAScript规范的上游! 保留该存储库是出于历史目的。 几年后,即2020年11月,添加了具有不同语义的String.prototype.at 。 请改用 。 串连 的健壮且经过优化的ES3兼容polyfill。 这段代码几乎完全是从@mathiasbynens出色的polyfill复制的,为我创建了该代码,以便它不会自动修改String.prototype ,从而使其更适合与es7-shim 。 将其用作独立函数,或调用其shim方法将其安装为polyfill。 例子 var at = require ( 'string-at' ) ; var assert = require ( 'assert' ) ; var surrogatePair = '\uD834\uDF06 abc' ; // a surrogate pair assert ( surr
【文件预览】:
obsolete-string-at-master
----.eslintrc(432B)
----.github()
--------workflows()
----.travis.yml(252B)
----LICENSE(1KB)
----test()
--------shimmed.js(1KB)
--------tests.js(4KB)
--------index.js(423B)
----README.md(3KB)
----auto.js(36B)
----.npmrc(55B)
----.gitignore(670B)
----index.js(1KB)
----CHANGELOG.md(14KB)
----package.json(2KB)

网友评论