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

时间:2021-05-01 07:32:37
【文件属性】:
文件名称:Array.prototype.flatMap:符合ESnext规范的“ Array.prototype.flatMap” shimpolyfillreplacement,可向下运行到ES3
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-01 07:32:37
javascript polyfill array ecmascript shim array.prototype.flatmap 符合ESnext规范的Array.prototype.flatMap填充程序/ polyfill / replacement可以使用到ES3。 该软件包实现了接口。 它在ES3支持的环境中工作,并符合建议的。 因为Array.prototype.flatMap依赖于接收方( this值),所以Array.prototype.flatMap出将数组作为第一个参数进行操作。 入门 npm install --save array.prototype.flatmap 用法/示例 var flatMap = require ( 'array.prototype.flatmap' ) ; var assert = require ( 'assert' ) ; var arr = [ 1 , [ 2 ] , [ ] , 3 ] ; var resu
【文件预览】:
Array.prototype.flatMap-main
----polyfill.js(162B)
----.eslintrc(617B)
----implementation.js(758B)
----index.js(419B)
----package.json(2KB)
----.github()
--------FUNDING.yml(594B)
--------workflows()
----test()
--------shimmed.js(1KB)
--------implementation.js(609B)
--------index.js(448B)
--------tests.js(1KB)
----.nycrc(139B)
----LICENSE(1KB)
----.npmignore(1002B)
----shim.js(327B)
----.gitignore(966B)
----CHANGELOG.md(2KB)
----.npmrc(19B)
----README.md(3KB)
----auto.js(36B)
----.eslintignore(10B)

网友评论