chujCiWSilikon

mail@pastecode.io avatar
unknown
javascript
2 years ago
248 B
1
Indexable
Never
var ctArray = [
    {displayValue: 'CT1', Value: 'true'},
    {displayValue: 'CT2', Value: 'false'},
    {displayValue: 'CT3', Value: 'true'}
]

let ctTrue = ctArray.filter(function (e) {
    return e.Value == 'true'
})
console.log(ctTrue)