Wypełnij tablicę wartościami JavaScript
let filledArray = new Array(10).fill({'hello':'goodbye'});
Cute Crossbill
let filledArray = new Array(10).fill({'hello':'goodbye'});
Array.from({length: 3}, (_, i) => i); //[0,1,2]
[...Array(3)].map((_, i) => i); //[0,1,2]