How To Use . map() to Iterate Through Array Items in JavaScript Step 1 — Calling a Function on Each Item in an Array. . ... Step 2 — Converting a String to an Array. . ... Step 3 — Rendering Lists in JavaScript Libraries. JavaScript libraries like React use . ... Step 4 — Reformatting Array Objects. . Dec 11, 2019