As the question describes, I am going to show the code below.
[An array].map((item, index) => { return