javascript TIL

2022・07・25


Array(4).fill(['a','b']).flat()
// (8) ['a', 'b', 'a', 'b', 'a', 'b', 'a', 'b']
const items = Array(100)
  .fill(<div>hello</div>)