I have an array, filter and keyword.
i want to search in that array using filter and keyword, with result array of object too. Just like first array.
var data = [
{email: [email protected],nama:User A, Level:Super Admin},
{email: [email protected],nama:User B, Level:Super Admin},
{email: [email protected],nama:User C, Level:Standart},
{email: [email protected],nama:User D, Level:Standart},
{email: [email protected],nama:User E, Level:Admin},
{email: [email protected],nama:User F, Level:Standart}
];
var filter = Level;
var keyword = Standart;
//--------Search
console.log(data);