Hitung Filter Array JavaScript
const falseNb = items.filter(e => e.status === 'false').length;
Super Snake
const falseNb = items.filter(e => e.status === 'false').length;
const items = [
{ color:'red', type:'2', status:'true' },
{ color:'red', type:'2', status:'false' }
];
const falseNb = items.reduce((n, e) => e.status === 'false' ? n+1 : n, 0);
console.log(falseNb) // => 1