Cómo repetir una matriz de objetos n veces en JavaScript

const makeRepeated = (arr, repeats) =>
  [].concat(...Array.from({ length: repeats }, () => arr));
  
console.log(makeRepeated([1, 2, 3], 2));
Anxious Alligator