how to map through an indexed object code example Example: map index array.map((currentelement, index) => { });