【文件属性】:
文件名称:mapify:数组和对象的映射迭代
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-11 18:28:19
JavaScript
Mapify.js
Mapify 是一个 0.7KB 的独立模块,用于对数组和对象进行映射迭代,与Array.prototype.map工作方式相同,但还包括Object迭代支持并且比.map本身更快。
数组映射
创建一个新的Array与调用此每一个元素上所提供的功能的结果Array 。
句法
mapify ( arr , callback [ , thisArg ] ) ;
// Callback parameters
// currentValue: The current element being processed in the array.
// index: The index of the current element being processed in the array.
// array: The array being mapped.
// thisArg
【文件预览】:
mapify-master
----.jshintrc(362B)
----src()
--------mapify.js(1KB)
----.travis.yml(101B)
----gulpfile.js(2KB)
----LICENSE(1KB)
----test()
--------spec()
--------karma.conf.js(294B)
----README.md(3KB)
----dist()
--------mapify.min.js(750B)
--------mapify.js(1KB)
----.editorconfig(414B)
----.gitignore(158B)
----package.json(721B)