An Interest In:
Web News this Week
- May 1, 2024
- April 30, 2024
- April 29, 2024
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
November 26, 2018 03:02 pm GMT
Original Link: https://bitsofco.de/you-might-not-need-a-loop/
You might not need a loop
Ire Aderinokun has written a nifty piece using loops and when we might consider replacing it with another method, say .map()
and .filter()
. I particularly like what she has to say here:
As I mentioned earlier, loops are a great tool for a lot of cases, and the existence of these new methods doesn't mean that loops shouldn't be used at all.
I think these methods are great because they provide code that is in a way self-documenting. When …
The post You might not need a loop appeared first on CSS-Tricks.
Original Link: https://bitsofco.de/you-might-not-need-a-loop/
Share this article:
Tweet
View Full Article