`capToSize` makes two calls to localStorage, via `getSize()` and then `get()`. Instead, how about:
```
var arr = this.get();
if (arr.length > desiredSize) { arr.length = desiredSize; }
return arr;
```