Dataviewjs include() method doesn't work with frontmatter list of links

You can’t just compare links like that. Try the following in a file of its own:

[[Something]]

[[Something|someone]]

```dataviewjs

const outlinks = dv.current().file.outlinks 
dv.paragraph(outlinks)
dv.paragraph("object vs object: " + (outlinks[0] == outlinks[1]) )
dv.paragraph("link.equals(): " + outlinks[0].equals(outlinks[1]))
```

So in your case it should suffice to do saved1.equals(saved2).

1 Like