Y
Hacker News
new
|
ask
|
show
|
jobs
by
monos
5729 days ago
I sometimes find this nicer to read when I just want to collect a property from an array of objects (yes, map would work too):
var ids = [story.id for (story in stories)]