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)] var ids = [story.id for (story in stories)]No comments yet.