Array.prototype.every:Array.prototype。每个符合规范的polyfill

时间:2021-05-01 07:43:44
【文件属性】:
文件名称:Array.prototype.every:Array.prototype。每个符合规范的polyfill
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-01 07:43:44
javascript polyfill array ecmascript shim 数组原型 符合ES5规范的Array.prototype.every / polyfill / replacement可以使用到ES3。 该软件包实现了接口。 它在ES3支持的环境中工作,并符合建议的。 因为Array.prototype.every取决于接收方(“ this”值),所以Array.prototype.every出将数组作为第一个参数进行操作。 例子 var every = require ( 'array.prototype.every' ) ; var assert = require ( 'assert' ) ; assert . equal ( true , every ( [ 1 , 1 , 1 ] , function ( x ) { return x === 1 ; } ) ) ; assert . equal ( false , every ( [ 1
【文件预览】:
Array.prototype.every-main
----.gitignore(661B)
----.eslintrc(491B)
----package.json(2KB)
----.nycrc(216B)
----.npmrc(55B)
----auto.js(36B)
----LICENSE(1KB)
----index.js(713B)
----CHANGELOG.md(9KB)
----.github()
--------FUNDING.yml(592B)
--------workflows()
----README.md(3KB)
----implementation.js(1KB)
----.eslintignore(10B)
----shim.js(333B)
----.npmignore(697B)
----polyfill.js(390B)
----test()
--------index.js(465B)
--------shimmed.js(2KB)
--------implementation.js(1KB)
--------tests.js(5KB)

网友评论