Array(50).fill([0,1]).flat(); incompatibility

PsychoPy version 2020.2.5

I’ve just been sent an error message which suggests that the code I’ve recommended in my crib sheet to replace primeType = [0, 1] * 50 isn’t compatible (presumably with Safari on a Mac).

primeType = Array(50).fill([0,1]).flat();

1 Like