Horje
filter array by keyword Code Example
filter array by keyword
var data = [
  {email: "usera@gmail.com",nama:"User A", Level:"Super Admin"},
  {email: "userb@gmail.com",nama:"User B", Level:"Super Admin"},
  {email: "userc@gmail.com",nama:"User C", Level:"Standart"},
  {email: "userd@gmail.com",nama:"User D", Level:"Standart"},
  {email: "usere@gmail.com",nama:"User E", Level:"Admin"},
  {email: "userf@gmail.com",nama:"User F", Level:"Standart"}
];
var filter = "Level";
var keyword = "Standart";

var filteredData = data.filter(function(obj) {
	return obj[filter] === keyword;
});

console.log(filteredData);




Css

Related
working with tailwind css on your react build Code Example working with tailwind css on your react build Code Example
pixel to inches Code Example pixel to inches Code Example
negative border radius Code Example negative border radius Code Example
how to include css in handlebars Code Example how to include css in handlebars Code Example
Giving body maximum width in css Code Example Giving body maximum width in css Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8