2 ms·
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 (sto
by monos 16y 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)]