I have an object that I'm iterating

```
for (el in object) {
// Some work here
}

```

I want to know when is the last iteration, inside the iteration, so I can do

```
for (el in object) {
// Some work here
if (last_iteration) {
// Do something
}
}

```

Any straightforward way to do it?