{ link: { params: { rel: 'shortcut icon' } } }
{ rel: 'shortcut icon', type="image/x-icon" } //true
{ rel: 'stylesheet' } //false
function check(o, params) {
let match = false
Object.entries(o).some(([k, v]) => {
if(Object.entries(params).some(([kk, vv]) => k === k && v === vv)) match = true
})
return match
}
params = { rel: 'shortcut icon' }
o = { rel: 'shortcut icon', type: "image/x-icon" }
check(o, params)
// true
o = { rel: 'stylesheet' }
check(o, params)
// false