I am looking to create a dynamic filter for an array of objects where I can search every key's value without specifying the key itself. The goal is to return the matched objects, similar to how the angular material table filters all columns.
[
{
"id":4,
"email":"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="503526357e383f3c24102235212235237e393e">[email protected]</a>",
"first_name":"Eve",
"last_name":"Holt",
"avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/marcoramires/128.jpg",
"date":"2020-02-24T13:19:08.630025Z"
},
{
"id":5,
"email":"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f6959e97849a9385d89b9984849f85b6849387849385d89f98">[email protected]</a>",
"first_name":"Charles",
"last_name":"Morris",
"avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/stephenmoon/128.jpg",
"date":"2020-02-24T13:19:08.630025Z"
},
{
"id":6,
"email":"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5723253634322e7925363a382417253226253224793e39">[email protected]</a>",
"first_name":"Tracey",
"last_name":"Ramos",
"avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/bigmancho/128.jpg",
"date":"2020-02-24T13:19:08.630025Z"
}
]
Additionally, I would like to implement filtering based on date.