Using async-await with arr.map()
While working on a task today, I had to populate my array of objects using my database.
Instinctively, I used the map function. The code looked something like this:
const dataList = [
{ type: "test__1" },
{ type: "test__2" },
{ type: "tes...
satejbidvai.hashnode.dev1 min read