var students = ["Malcom", "Jayne"];
var persons = [
{firstname : "Malcom", lastname: "Reynolds"},
{firstname : "Kaylee", lastname: "Frye"},
{firstname : "Jayne", lastname: "Cobb"}
];
I want to filter(or map, forEach whatever) persons array with students array. Students array is dynamic, so its length can be changed.
Any ideas?