var a = ["1", "3", "5"];
var b = [
{ id: "1", name: "" },
{ id: "2", name: "" },
{ id: "3", name: "" },
{ id: "4", name: "" },
{ id: "5", name: "" },
{ id: "6", name: "" },
];
how to match [{id: "1", name: "Business"}, {id: "3", name: "Swimming"}, {id: "5", name: "Leisure"},]