let's say I have something like this:
var SucessList = [
{
id: 1,
dedicated: true
},
{
id: 2,
dedicated: false
}
];
and I want to make an if function to check if dedicated == true. How do i select dedicated to use like that?
let's say I have something like this:
var SucessList = [
{
id: 1,
dedicated: true
},
{
id: 2,
dedicated: false
}
];
and I want to make an if function to check if dedicated == true. How do i select dedicated to use like that?
let res = SucessList.filter(({dedicated}) => dedicated);