how to pass this inside map code example Example: map index array.map((currentelement, index) => { });