Sign in
Log inSign up

forEach vs map, which one to use and what cases?

JEDev++'s photo
JEDev++
·Feb 8, 2018

Sometimes i see some linter errors when using map which is resolved if i convert it to forEach. Anyone care to explain :D

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2025 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct