Skip to content

Why is map() used instead of forEach() in the src/index.ts? #190

Answered by developit
nikolausliu asked this question in Q&A
Discussion options

You must be logged in to vote

This is done to reduce file size. "map" is shorter than "forEach".

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@nikolausliu
Comment options

@raineorshine
Comment options

@dimaMachina
Comment options

Answer selected by nikolausliu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants