Array.prototype.reduceRight:符合ES5规范的“ Array.prototype.reduceRight” shimpolyfillreplacement可以使用到ES3

时间:2024-06-04 23:12:53
【文件属性】:

文件名称:Array.prototype.reduceRight:符合ES5规范的“ Array.prototype.reduceRight” shimpolyfillreplacement可以使用到ES3

文件大小:17KB

文件格式:ZIP

更新时间:2024-06-04 23:12:53

javascript polyfill array ecmascript reduce

array.prototype.reduceRight 符合ES5规范的Array.prototype.reduceRight填充/填充/替换功能,其工作范围可追溯到ES3。 该软件包实现了接口。 它可以在ES3支持的环境中工作并符合。 因为Array.prototype.reduceRight取决于接收方(“ this”值),所以Array.prototype.reduceRight出将数组作为第一个参数进行操作。 例子 var reduceRight = require ( 'array.prototype.reduceright' ) ; var assert = require ( 'assert' ) ; assert . equal ( reduceRight ( [ 1 , 2 , 3 ] , function ( prev , x ) { return prev +


【文件预览】:
Array.prototype.reduceRight-main
----polyfill.js(297B)
----.eslintrc(506B)
----implementation.js(2KB)
----index.js(786B)
----package.json(2KB)
----.github()
--------workflows()
----test()
--------shimmed.js(1KB)
--------implementation.js(510B)
--------index.js(501B)
--------tests.js(5KB)
----.nycrc(139B)
----LICENSE(1KB)
----.npmignore(1KB)
----shim.js(352B)
----.gitignore(997B)
----CHANGELOG.md(5KB)
----.npmrc(55B)
----README.md(3KB)
----auto.js(36B)
----.eslintignore(10B)

网友评论