TwojaStaraZapierdala

Anonymous
javascript
12/13/2022 9:44 PM
368 B
17
Indexable
var ctArray = [
    {displayValue: 'CT1', Value: 'true'},
    {displayValue: 'CT2', Value: 'false'},
    {displayValue: 'CT3', Value: 'true'}
]


let ctTrue = ctArray.filter(function (e) {
    if (e.Value === 'true')
    return e.displayValue
})
console.log(ctTrue)
Editor is loading...