Array.prototype.indexOf:符合ES2015规范的“ Array.prototype.indexOf” shimpolyfillreplacement可以向下使用到ES3

时间:2021-05-01 07:48:14
【文件属性】:
文件名称:Array.prototype.indexOf:符合ES2015规范的“ Array.prototype.indexOf” shimpolyfillreplacement可以向下使用到ES3
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-01 07:48:14
javascript polyfill array ecmascript shim array.prototype.indexof 符合ES2015规范的shim / polyfill / replacement的Array.prototype.indexof ,可工作到ES3。 该软件包实现了接口。 它可以在ES3支持的环境中工作并符合。 因为Array.prototype.indexOf依赖于接收方(“ this”值),所以Array.prototype.indexOf出将数组作为第一个参数进行操作。 例子 var indexOf = require ( 'array.prototype.indexof' ) ; var assert = require ( 'assert' ) ; assert . equal ( indexOf ( [ 1 , 2 , 3 ] , 2 ) , 1 ) ; assert . equal ( indexOf ( [ 1 , 0
【文件预览】:
Array.prototype.indexOf-main
----.gitignore(2KB)
----.eslintrc(315B)
----package.json(2KB)
----.nycrc(139B)
----.npmrc(55B)
----auto.js(36B)
----LICENSE(1KB)
----index.js(712B)
----CHANGELOG.md(5KB)
----.github()
--------workflows()
----README.md(3KB)
----implementation.js(1KB)
----.eslintignore(10B)
----shim.js(332B)
----.npmignore(2KB)
----polyfill.js(799B)
----test()
--------index.js(474B)
--------shimmed.js(1KB)
--------implementation.js(536B)
--------tests.js(637B)

网友评论