I am struggling with filtering a JSON response using Vue.
return this.offers.filter(type => type.offers == 'Junior');
When I keep it as return this.offers
, the following is displayed in my HTML:
{"-MN5agCddYAdy7c8GSSz": { "companyName": "dawdwad", "image": "da", "jobDescription": "dada", "location": "daw", "salary": "dadaw", "skill": "dawda", "tags": "dada", "title": "dwa" }, "-MN7vsTsNohgQigd3S26": { "companyName": "ejadfjaq", "image": "", "jobDescription": "dada", "location": "2sjawdja", "salary": "40324032", "skill": "Junior", "tags": "ux", "title": "fawd" } }
However, I want only the entries with
"skill": "Junior"
to be visible.