https://serverless-stack.com/ logo
#random
Title
# random
a

Adrián Mouly

05/23/2022, 9:44 PM
Looking at the Migration guide for v1, I see that many
arrays
has been converted into
Record<string, Object>
. Why is done this way? what’s the advantage of not having arrays? it’s easier to access an item this way?
t

thdxr

05/23/2022, 9:44 PM
yeah and there's places in the console where it's helpful to have a friendly name
a

Adrián Mouly

05/23/2022, 9:45 PM
I see.
So any other reason?
It’s this a general thing other libs are doing too?
t

thdxr

05/23/2022, 9:45 PM
we also have apis like
bucket.addPermissionsToSubscriber
and it's better to pass in a name than an index
a

Adrián Mouly

05/23/2022, 9:47 PM
Ah, ok.