Skip to content

Getting all stations for a given prefecture #4

@SachaG

Description

@SachaG

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions