I have the following TypeScript function:
$.each($("[data-static-map-image]"), function () {
$(this).attr("src", $(this).data("mapImageUrl"));
});
I would like to convert this into an Arrow function. Unfortunately, I can't figure out how to make it work with the each loop. Can someone give me a hint?
P.S. I ask for your indulgence as I am still in the beginning of the learning phase.