Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add array methods #18

Open
jondashkyle opened this issue May 31, 2018 · 2 comments
Open

Add array methods #18

jondashkyle opened this issue May 31, 2018 · 2 comments

Comments

@jondashkyle
Copy link
Owner

Should just expose array methods, too!

.forEach()
.filter()
.reduce()
.map()
@jongacnik
Copy link
Collaborator

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?

@jondashkyle
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants