 
      
    JavaScript
- 1 ответ
- 0 вопросов
    1
    Вклад в тег
    
      
      
    
  
  
const testArray = [[25, 40], [18, 18], [18, 60], [19, 47]];
for (let i = 0; i < testArray.length; i++) {
    for (let j = 0; j < testArray.length; j++) {
        if (i === j)
            continue;
        if (testArray[i][0] >= testArray[j][0] && testArray[i][1] <= testArray[j][1])
            console.log(`[[${testArray[i]}], [${testArray[j]}]]`);
    }
}