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

Getting all stations for a given prefecture #4

Open
SachaG opened this issue Apr 24, 2018 · 0 comments
Open

Getting all stations for a given prefecture #4

SachaG opened this issue Apr 24, 2018 · 0 comments

Comments

@SachaG
Copy link

SachaG commented Apr 24, 2018

In the example, console.log(stations.find(({ prefecture: { id } }) => id === 13)) seems to return a prefecture object?

I assume you can then iterate over that object's lines property to get the lines, and from there the stations? But is there a way to just get an array of stations right out of the box?

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

1 participant