array basic

by black strings

JavaScript

const data = [
	{
  	id: 1,
    country: 'marathon'
  },
  {
  	id: 2,
    country: 'bollavard'
  },
  {
  	id: 3,
    country: 'marathon'
  }
];

// give me all objs with marathon
const newFilter = data.filter(obj => {
	return obj.country === 'marathon';
});

console.log(newFilter);

//proxy.local.conf.json
{
	"/myApi/*": {
    "target": "http://localhost:8080",
    "changeOrigin": true,
    "secure": false,
    "logLevel": "debug"
  }
}