UNPKG
@arr/foreach.spec
Version:
latest (0.1.0)
0.1.0
A tiny, faster alternative to native Array.prototype.forEach
github.com/lukeed/arr
lukeed/arr
@arr/foreach.spec
/
index.js
7 lines
(6 loc)
•
92 B
JavaScript
View Raw
1
2
3
4
5
6
7
module.exports =
function
(
arr, fn
)
{
var
i;
for
(i in arr) {
fn
(
arr[i], +i, arr
)
; } }