adrianhajdin / project_travel_advisor

Tutorial created in collaboration with Enyel Sequeira, taught by JavaScript Mastery.
MIT License
2.01k stars 444 forks source link

error showing undefined filter #47

Open RISHABH2407 opened 1 year ago

RISHABH2407 commented 1 year ago

Screenshot 2023-06-05 020746

please help I'm stuck with this for a very long time Screenshot 2023-06-05 020746

astha2412 commented 1 year ago

Getting same error.........what to do in this??

nitesh9292 commented 1 year ago

const filteredPlaces = places?.filter((place)=>place.rating > rating);

use ? To check if the place exists, only you apply the filter.