const array1 = [[1, 2, 3, 4, 5], [4, 5], [6, 7, 8], [9, 10], [9, 11], [9, 10]] const obj = {}; array1.forEach((item, index) => { obj[index] = item }) const arr = [1, 4, 5] let lastFalseKey; Object.keys(obj).forEach(key => { const item = obj[key]; let flag = arr.map(e => { return !item.includes(e) }) if (flag.some(e => !e)) { lastFalseKey = key } }) const lastTargetArr = array1.filter((e ,ei) => ei > lastFalseKey) console.log(lastTargetArr)