When you use for function you can save the position of an object like (example):
for (var i = 0; i < array.length; i++) { var position = i; } but I don't know how I can get the position an how I can know if it is the last using map function
array.map((object) => { }) Someone can help?