any reason why this wouldn't work?

```javascript
result.keys = result.keys.slice(0, limit);
result.nextToken = _.last(result.keys);
```