function check(o){
if(Array.isArray(o))
return o.some(e1=>check(e1));
if(typeof(o) == "object"){
if(o.intValue && o.intValue === 1)
return true;
return Object.keys(o).some(e1=>check(o[e1]));
}
return false;
}
let filterArr = arr.filter(e=>check(e));