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

Allow toJSON and toArray methods to take attributes as multiple arguments (as well as array) #7

Open
domchristie opened this issue Sep 21, 2015 · 0 comments

Comments

@domchristie
Copy link
Contributor

Custom output is currently achieved by passing in an array of attributes:

statement.transactions.toArray(['date', 'description', 'amount'])

It should also be possible to do:

statement.transactions.toArray('date', 'description', 'amount')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant