I think you're looking for this. You can use map when you want to return a new array. If you just want to iterate your should use forEach.
let array = new Array(4560).fill(1); const map1 = array.mapforEach(x => console.log("x"x)); console.log(map1)