Create a function that receives the following array as a parameter and returns only the numbers from it. Use the .filter function.
const array = ["1", 2, "party", "grill", 3, "12"];
Create a function that receives the following array of object as a parameter and checks returns true/false if all the objects are favorites.
Create a function that receives 2 parameters, the first one should be a string, and the last one an array, and check if the array includes the string. Then, iterate over the "arrayObj" element and for each "name" property, check if it is included in the watchedShows array.
const watchedShows = ["Game of Thrones", "South Park"];
Create a function that receives the following array as a parameter and returns only the numbers from it. Use the .filter function.
const array = ["1", 2, "party", "grill", 3, "12"];
Create a function that receives the following array of object as a parameter and checks returns true/false if all the objects are favorites.
const arrayObj = [ { name: "Game of Thrones", favorite: true }, { name: "Succession", favorite: true } ];
const arrayObj = [ { name: "Game of Thrones", favorite: true }, { name: "Succession", favorite: true } ];
const watchedShows = ["Game of Thrones", "South Park"];
const arrayObj = [ { name: "Game of Thrones", favorite: true }, { name: "Succession", favorite: true } ];