Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pazqo
· 5y ago · 0 comments
You should be able to accomplish the same with elevators.forEach((elevator) => {})
Comments
[–]
lloydatkinson
5y ago
It could, but favouring FP I'd use for..of for imperative loops where I need to do side-effects, or use .map which is nicer anyway.