---
title: "Discussion on \"5 must known array method\" | Hashnode"
description: "Discussion on \"5 must known array method\". Javascript array map() function\nThe map() function runs a given function once for each element in an iterable.\nIt does not modify the array it is invoked on.\nThe syntax for the map() method is :\nmap(function callback(currentValue, index, array)) { … ..."
url: "https://hashnode.com/posts/5-must-known-array-method/6168eec853401f641ba17745"
---

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

Discussion

# [5 must known array method](https://palakgupta.hashnode.dev/5-must-known-array-method?utm_source=hashnode&utm_medium=feed)

Javascript array map() function The map() function runs a given function once for each element in an iterable. It does not modify the array it is invoked on. The syntax for the map() method is : map(function callback(currentValue, index, array)) { … ...

Oct 14, 2021 · 3 min read · palakgupta.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#array](https://hashnode.com/tag/array)

## Written by

[Palak Gupta](https://hashnode.com/@palakgupta)

@palakgupta

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
