Y
Hacker News
new
|
ask
|
show
|
jobs
by
hajile
1631 days ago
Filter and then map will iterate the list twice. JS really needs some iterator-based methods like Lodash where it will only go through the list once in this case.