nanopage
nanopage copied to clipboard
Add array methods
Should just expose array methods, too!
.forEach()
.filter()
.reduce()
.map()
feel like it is clearer to just rely on https://github.com/jondashkyle/nanopage#toarray when you want array methods, that way we're not selectively proxying them? wut u think?
Totally. I was thinking something like this could be useful.
var pages = page().pages().filter(name => name === 'jon').paginate(2, 10).toArray()
But yeah, either way.