Next Js Typescript Array Iteration Without Using Arrow