now I have name and status in my array
let data=[
{name:"",status:false},
{name:"",status:false},
{name:"",status:true},//
{name:"",status:false},
{name:"",status:false},
{name:"",status:false},
{name:"",status:false},
{name:"",status:true},//
{name:"",status:false},
{name:"",status:false},
{name:"",status:true},// truefalse
{name:"",status:true},
{name:"",status:true},
{name:"",status:false},
]
console.log(data);
I want to start from the first one until there are three true, and then turn the rest into false,.