Gulafsan Shaheen
Published in : 2022-03-05
I have create a dataset which comprises of object, I want them to be filtered by their property values.
{id: 1, title: Anne, Finalist: true}, {id:2, title: Sam, Finalist: false},{id:3, title: Lexi, Finalist: true}
I want to filter object which propety Finalist is true.
RESULT:
{id: 1, title: Tom, Finalist: true}, {id:3, title: Jake, Finalist: true}
Please help me!
Join our community and get the chance to solve your code issues & share your opinion with us
Sign up Now
Shilpa Date : 2022-03-05
Best answers
10
Best answers
10
You can do with reduce API from Javascript.
Your objects input:
Hope it helps!