Hey, I am working on the “Build a Wikipedia Viewer” project. Everything works fine except when I want to search certain phrases on the search form, the Wikipedia API will return one good item and the rest of the items will return “undefined”.
How would I build a filter into my for loop to exclude any data that is labeled as “undefined” so that it does not show up in my results section?
To get an example of the “undefined” results that I am getting, try searching for “beautiful kitty” in the search form. It comes up with one valid entry and description, but the rest all return “undefined.”