securityos/node_modules/regl/lib/util/loop.js

8 lines
139 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
module.exports = function loop (n, f) {
var result = Array(n)
for (var i = 0; i < n; ++i) {
result[i] = f(i)
}
return result
}