Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
etrepum
· 3y ago · 0 comments
Just a small note on the shot-scraper post (very cool stuff!): You can use Array.from(xs, fn) instead of Array.from(xs).map(fn). Same semantics but it happens in one pass with less garbage.
Comments
[–]
simonw
3y ago
I keep on forgetting that shortcut, thanks!