This message was deleted.
# general
s
This message was deleted.
f
If you really want to have that container1..3 style naming, then it probably makes sense to track the ‘suffix’ as a thing you attach the various other names as opposed to using counter
So ‘names’ is really “1”, “2", and “3” and then you’re iterating through those. If you remove “2" then it’s fine since “3” is the suffix that gets attached to everything
r
Thank you @faint-table-42725 for your comment I find a solution by doing this; I'm not sure if that's a good practice (it seems to be working fine):
Copy code
names.forEach(n => containers.push(/* ... */));

// ...
containers.forEach(c => c.name.apply(n => blobs.push(/* ... */)))