You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: