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

时间:2024-06-05 01:28:30
【文件属性】:

文件名称:Array.prototype.copyWithin:符合ES2015规范的“ Array.prototype.copyWithin” shimpolyfillreplacement可以向下使用到ES3

文件大小:18KB

文件格式:ZIP

更新时间:2024-06-05 01:28:30

javascript polyfill array ecmascript shim

array.prototype.copywithin 符合ES2015规范的Array.prototype.copyWithin填充板/填充/替换,可向下运行到ES3。 该软件包实现了接口。 它可以在ES3支持的环境中工作并符合。 因为Array.prototype.copyWithin依赖于接收方(“ this”值),所以Array.prototype.copyWithin出将数组作为第一个参数进行操作。 例子 var copyWithin = require ( 'array.prototype.copywithin' ) ; var assert = require ( 'assert' ) ; var arr = [ 1 , 2 , 3 , 4 , 5 ] ; assert . deepEqual ( copyWithin ( arr , 0 , 3 ) , [ 4 , 5


【文件预览】:
Array.prototype.copyWithin-main
----polyfill.js(165B)
----.eslintrc(463B)
----implementation.js(3KB)
----index.js(708B)
----package.json(2KB)
----.github()
--------workflows()
----test()
--------shimmed.js(1KB)
--------implementation.js(621B)
--------index.js(440B)
--------tests.js(5KB)
--------index.mjs(1KB)
----.nycrc(216B)
----LICENSE(1KB)
----.npmignore(2KB)
----index.mjs(675B)
----shim.js(344B)
----.gitignore(2KB)
----CHANGELOG.md(1KB)
----.npmrc(55B)
----README.md(3KB)
----auto.js(36B)
----.eslintignore(10B)

网友评论