---
title: "Discussion on \"Using async-await with arr.map()\" | Hashnode"
description: "Discussion on \"Using async-await with arr.map()\". While working on a task today, I had to populate my array of objects using my database.\nInstinctively, I used the map function. The code looked something like this:\nconst dataList = [\n    { type: \"test__1\" },\n    { type: \"test__2\" },\n    { type: \"tes..."
url: "https://hashnode.com/posts/using-async-await-with-arrmap/63c05f214f14371f1ef6a949"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using async-await with arr.map()](https://satejbidvai.hashnode.dev/using-async-await-with-arrmap?utm_source=hashnode&utm_medium=feed)

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...

Jan 12, 2023 · 1 min read · satejbidvai.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Satej Bidvai](https://hashnode.com/@codelectron)

@codelectron

  
[View profile](https://hashnode.com/@codelectron)

A software development enthusiast :)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
