I want to filter an object that has the name “Test” from the below array.
const row = [
{
"tags": "Vihar",
"name":"Test"
},
{
"tags": "Akshay",
"name":"Test 2"
},
]
I want to filter an object that has the name “Test” from the below array.
const row = [
{
"tags": "Vihar",
"name":"Test"
},
{
"tags": "Akshay",
"name":"Test 2"
},
]
You can filter the array with filter
function:
{{ row.filter(item => item.name === "Test") }}