magic-iterable:通过在Iterable本身上调用对Iterable中的所有项目调用方法

时间:2021-05-26 07:49:48
【文件属性】:
文件名称:magic-iterable:通过在Iterable本身上调用对Iterable中的所有项目调用方法
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-26 07:49:48
nodejs npm-package iterable es2015-proxy JavaScript 魔术可迭代的 通过在Iterable本身上调用对Iterable中的所有项目调用方法 使用 。 安装 $ npm install magic-iterable 用法 const magicIterable = require ( 'magic-iterable' ) ; const x = { i : 0 , increment ( value ) { this . i += value ; return this . i ; } } ; const array = [ x , x , x , x ] ; const magicArray = magicIterable ( array ) ; Array . isArray ( magicArray ) ; //=> true magicArray . increment ( 2 ) ; //=> [2, 4, 6, 8
【文件预览】:
magic-iterable-main
----.gitattributes(29B)
----.github()
--------workflows()
----test.js(1KB)
----license(1KB)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(462B)
----readme.md(2KB)
----package.json(629B)

网友评论