TwojaStaraZapierdala

mail@pastecode.io avatar
unknown
javascript
2 years ago
318 B
5
Indexable
Never
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})


//var CT = Object.values(ctTrue)

console.log(ctTrue)