nanopage icon indicating copy to clipboard operation
nanopage copied to clipboard

Add array methods

Open jondashkyle opened this issue 6 years ago • 2 comments

Should just expose array methods, too!

.forEach()
.filter()
.reduce()
.map()

jondashkyle avatar May 31 '18 21:05 jondashkyle

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?

jongacnik avatar Jun 01 '18 18:06 jongacnik

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.

jondashkyle avatar Jun 03 '18 00:06 jondashkyle