var number = []; for (i = 0; i < array[3].length; i++){ number[i] = + array[3][i].object; } number.includes(1) // и тогдалие...