---
title: "Discussion on \"When not to use Array.prototype.map()\" | Hashnode"
description: "Discussion on \"When not to use Array.prototype.map()\". When all you have is a hammer everything looks like a nail."
url: "https://hashnode.com/posts/when-not-to-use-array-prototype-map/60cc43f137952431a1710010"
---

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

Discussion

# [When not to use Array.prototype.map()](https://blog.niranjanborawake.in/when-not-to-use-array-prototype-map?utm_source=hashnode&utm_medium=feed)

When all you have is a hammer everything looks like a nail.

Jun 18, 2021 · 3 min read · blog.niranjanborawake.in  
Updated Jun 25, 2021  
Read the article

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

## Written by

[Niranjan Borawake](https://hashnode.com/@niranjandb)

@niranjandb · Pune, India

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

Problem Solver | Front-end Engineer | Netflix Addict

Hi there! I'm a software professional with over 13 years of experience in developing software products. My passion lies in web development, and I specialize in using React to create engaging and user-friendly websites. Recently, I've embarked on an exciting journey into the world of machine learning, eager to explore its endless possibilities. Join me as I share my experiences, insights, and discoveries through my blog, where we can dive into the fascinating realm of software development, web development with React, and the exciting field of machine learning. Let's learn and grow together!

## Responses 3

Markdown supported · ⌘↵ to post

[Andrew Baisden](https://hashnode.com/@andrewbaisden)

[Jun 24, 2021](https://hashnode.com/posts/when-not-to-use-array-prototype-map/60cc43f137952431a1710010/comment/60d484c812f77505a833bf4c)

Good example.

[Jun 18, 2021](https://hashnode.com/posts/when-not-to-use-array-prototype-map/60cc43f137952431a1710010/comment/60cc690a37952431a1710493)

Really liked the photocopy analogy, Great article

[Niranjan Borawake](https://hashnode.com/@niranjandb)

[Jun 18, 2021](https://hashnode.com/posts/when-not-to-use-array-prototype-map/60cc43f137952431a1710010/comment/60cc690a37952431a1710493#reply-60cc7d0e554b0d31c6052f33)

Thanks.

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

[Jun 18, 2021](https://hashnode.com/posts/when-not-to-use-array-prototype-map/60cc43f137952431a1710010/comment/60cc624037952431a17103b8)

Nice explanation of the map method. Thanks for sharing
