Repeat string as multi-item list/array in PsychoJS

if I understand the question, then the solution is on my crib sheet:

Python
Using multiplication to create a larger array, e.g. [0, 1] * 10

JS
Array(10).fill([0,1]).flat();
Ref: dvbridges

1 Like