Javascript – Calling Image constructor on map returns an array of empty object
I tried to create an array of HtmlImageElement using a map on an other array. const foo = Array(5).map(() => new Image()) And I got an array full of empty object Why is that ? Thanks ! Edit : It…