Variable br must consist only of bool values. Which have been gotten by looping through the first array.
state ={
nonRelated: this.props.non_related.value,
1:true,
2:true,
3:false,
4:false,
5:true,
// etc.
}
let ar = [1,2,3,4,5,6,....20];
let br = ar.map(el => {
return state.el
})
I need to filter the array, if the key in the iteratee (which is an object) in the state has the value "true".