Skip to content

Replace map with forEach#78

Merged
steveoni merged 1 commit intojavascriptdata:masterfrom
hodovani:patch-3
Dec 27, 2020
Merged

Replace map with forEach#78
steveoni merged 1 commit intojavascriptdata:masterfrom
hodovani:patch-3

Conversation

@hodovani
Copy link
Copy Markdown
Contributor

The callback provided to the map call on this array should return a value, otherwise map will always return an array of undefined values. If the desired behaviour is to just iterate through all elements, then consider using forEach or a for-of loop instead.

The callback provided to the map call on this array should return a value, otherwise map will always return an array of undefined values. If the desired behaviour is to just iterate through all elements, then consider using forEach or a for-of loop instead.
@steveoni steveoni merged commit 53b4260 into javascriptdata:master Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants