var str = JSON.stringify(array[3]); if(str.includes(5) && str.includes(2)) else if(str.includes(5)) else if(str.includes(2))