-
Couldn't load subscription status.
- Fork 5
repeat
wolfram77 edited this page Mar 31, 2020
·
25 revisions
Repeats an array given times.
array.repeat(x, n);
// x: an array
// n: timesconst array = require('extra-array');
var x = [1, 2];
array.repeat(x, 2);
// [1, 2, 1, 2]
array.repeat(x, 3);
// [1, 2, 1, 2, 1, 2]