Array.prototype.flat:符合ESnext规范的“ Array.prototype.flat” shimpolyfillreplacement,可向下运行到ES3

时间:2024-05-21 01:20:31
【文件属性】:
文件名称:Array.prototype.flat:符合ESnext规范的“ Array.prototype.flat” shimpolyfillreplacement,可向下运行到ES3
文件大小:15KB
文件格式:ZIP
更新时间:2024-05-21 01:20:31
javascript polyfill array ecmascript flat array.prototype.flat 符合ES2019规范的Array.prototype.flat填充/填充/替换,可向下使用到ES3。 该软件包实现了接口。 它在ES3支持的环境中工作,并符合建议的。 因为Array.prototype.flat依赖于接收方( this值),所以Array.prototype.flat要对其进行操作的数组作为第一个参数。 入门 npm install --save array.prototype.flat 用法/示例 var flat = require ( 'array.prototype.flat' ) ; var assert = require ( 'assert' ) ; var arr = [ 1 , [ 2 ] , [ ] , 3 , [ [ 4 ] ] ] ; assert . deepEqual ( flat ( arr ,
【文件预览】:
Array.prototype.flat-main
----.gitignore(966B)
----.eslintrc(646B)
----package.json(2KB)
----.nycrc(139B)
----.npmrc(19B)
----auto.js(36B)
----LICENSE(1KB)
----index.js(410B)
----CHANGELOG.md(2KB)
----.github()
--------FUNDING.yml(591B)
--------workflows()
----README.md(2KB)
----implementation.js(695B)
----.eslintignore(10B)
----shim.js(315B)
----.npmignore(1002B)
----polyfill.js(159B)
----test()
--------index.js(448B)
--------shimmed.js(1KB)
--------implementation.js(597B)
--------tests.js(1KB)

网友评论