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
As mentioned in #32 we decided to extend this package with:
Categories for famous_for Property (thanks @jav7zaid for an idea!)
All countries should contain all categories for that property (even if they don't have a value)
Initial categories:
building
food
sport
Each category is an string[] (array of strings)
If category has no values it should be as as empty array
For the project needs all properties (and values) have to be lowercase.
After refactoring, each Country {Object} should contain:
{"country": "poland","capital": "warsaw","currency": "zloty","native_language": ["polish"],"phone_code": "+48","flag": "https://flagpedia.net/data/flags/h80/pl.png","drive_direction": "right",// REFACTORED DATA"famous_for": {"building": ["palace of culture and science","wawel"],"food": ["pierogi","potatoes"],"sport": ["ski jumping","volleyball"],// ...}}
After updating/adding data, then we need to refacator getCountriesByFamousFor(famousThing) Method to have two parameters ➡️ getCountriesByFamousFor(type, value) (e.g.: getCountriesByFamousFor("sport", "football")).
The text was updated successfully, but these errors were encountered:
As mentioned in #32 we decided to extend this package with:
famous_for
Property (thanks @jav7zaid for an idea!)building
food
sport
string[]
(array of strings)After refactoring, each
Country {Object}
should contain:After updating/adding data, then we need to refacator
getCountriesByFamousFor(famousThing)
Method to have two parameters ➡️getCountriesByFamousFor(type, value)
(e.g.:getCountriesByFamousFor("sport", "football")
).The text was updated successfully, but these errors were encountered: