UNPKG

219 BJavaScriptView Raw
1function concat$(x, ...ys) {
2 for (var y of ys)
3 x.push(...y);
4 return x;
5}
6function repeat(x, n = 1) {
7 for (var a = []; n > 0; n--)
8 concat$(a, x);
9 return a;
10}
11export { repeat as default };