Timeline for JavaScript: Difference between .forEach() and .map()
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 17, 2022 at 15:57 | comment | added | johny why |
Based on reading this page, it seems there's no downside to using .map for everything. It's fewer characters to type, loops at least as fast as .forEach, and then i can just remember one method.
|
|
| Jul 24, 2022 at 18:31 | history | edited | Vega | CC BY-SA 4.0 |
added 74 characters in body
|
| Dec 10, 2021 at 22:00 | history | edited | VLAZ | CC BY-SA 4.0 |
deleted 9 characters in body
|
| Nov 12, 2020 at 13:43 | history | edited | Harsha Vardhan Chakka | CC BY-SA 4.0 |
added 5 characters in body
|
| Nov 12, 2020 at 12:40 | history | edited | Harsha Vardhan Chakka | CC BY-SA 4.0 |
added 132 characters in body
|
| Nov 12, 2020 at 11:46 | history | edited | Harsha Vardhan Chakka | CC BY-SA 4.0 |
added 26 characters in body
|
| Jul 24, 2020 at 9:54 | history | answered | Harsha Vardhan Chakka | CC BY-SA 4.0 |