https://www.machinet.net/tutorial-fr/understanding-javascript-map-vs-foreach