SOURCE

const arr1= ["timeShield", "resourceField"] 
const arr2=[
    './resourceField/config',
    './resourceField/history',
    './resourceField/increment/config',
    './resourceField/increment/list',
    './manualMarking/config',
    './manualMarking/list',
    './manualMarking/detail',
    './timeShield/incrementConfig',
    './timeShield/shieldingHistory',
    './timeShield/stockConfig',
    './timeShield/unshielded'
];
arr1.forEach(item=>{
    arr2.forEach(ite=>{
        if(ite.includes(item)){
            console.log(ite)
        }
    })
})
console 命令行工具 X clear

                    
>
console