I have created an array in my controller with the following data:
var people = [
{
name:"Alice",
number:'808574629632',
email:"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f69897809a97989f85979e9f94c7b6919b979f9ad895999b">[email protected]</a>",
rating:'100',
id:0,
},
{
name:"Bob",
number:'808579632',
email:"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5e302d3f36373c6f1e39333f3732703d3133">[email protected]</a>",
rating:'100',
id:1,
},
{
name:"Eve",
number:'8085729632',
email:"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7917180f1518171048391e14181015571a1614">[email protected]</a>",
rating:'47',
id:2,
},
];
I am looking to filter out elements with a rating above 50. I have searched extensively for how to filter elements based on a condition using the '|' filter but have not found any useful information.