Array.prototype.map:符合Array.prototype.map规范的polyfill

时间:2021-05-01 02:58:08
【文件属性】:
文件名称:Array.prototype.map:符合Array.prototype.map规范的polyfill
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-01 02:58:08
javascript polyfill map array ecmascript array.prototype.map 符合ES5规范的Array.prototype.map填充程序/ polyfill / replacement可以使用到ES3。 该软件包实现了接口。 它可以在ES3支持的环境中工作并符合。 因为Array.prototype.map依赖于接收方(“ this”值),所以Array.prototype.map出将数组作为第一个参数进行操作。 例子 var map = require ( 'array.prototype.map' ) ; var assert = require ( 'assert' ) ; assert . deepEqual ( map ( [ 1 , 1 , 1 ] , function ( x ) { return x + 1 ; } ) , [ 2 , 2 , 2 ] ) ; assert . deepEqual (
【文件预览】:
Array.prototype.map-main
----.gitignore(997B)
----README.md(2KB)
----CHANGELOG.md(6KB)
----.github()
--------workflows()
----test()
--------implementation.js(1KB)
--------tests.js(4KB)
--------index.js(459B)
--------shimmed.js(2KB)
----polyfill.js(289B)
----LICENSE(1KB)
----auto.js(36B)
----.eslintrc(583B)
----implementation.js(2KB)
----package.json(2KB)
----index.js(705B)
----shim.js(325B)
----.eslintignore(10B)
----.npmignore(1KB)
----.npmrc(55B)
----.nycrc(139B)

网友评论