re: How The Hell Do I use Map? VIEW POST

re: I think it depends. I mostly write React these days and I almost never use a for loop. The nice thing about maps is they implictly return an array,...

Though I agree that immutability and functional programming are very useful, and I like writing that style of code, you can always come across a situation where a certain amount of performance is necessary so that creating a lot of new data structures or very big ones (like map does) is not an option.

code of conduct - report abuse