How to get nodes with no links?

is there a default function in diagram or model that gives me an iterator over nodes with no links connected?
or do i iterate over nodes in diagram and check for findLinksOutof

myDiagram.nodes.each(n => {
    if (n.linksConnected.count === 0) {...}
  })