docs/src/scripts/utils/getSassDocLinks.js
function findLink(ref) {
  if (lastLink.indexOf(ref) !== -1) {
    return lastLink;
  }

  lastLink = '';
  routes.some((link) => {
    if (link.indexOf(ref) !== -1) {
      lastLink = link;
    }

    return lastLink;
  });

  return lastLink;
}
function findLink(ref) {
  if (lastLink.indexOf(ref) !== -1) {
    return lastLink;
  }

  lastLink = '';
  routes.some((link) => {
    if (link.indexOf(ref) !== -1) {
      lastLink = link;
    }

    return lastLink;
  });

  return lastLink;
}
function findLink ( ref ) { if ( lastLink . indexOf ( ref ) !== - 1 ) { return lastLink ; } lastLink = '' ; routes . some ( ( link ) => { if ( link . indexOf ( ref ) !== - 1 ) { lastLink = link ; } return lastLink ; } ) ; return lastLink ; }
"Lazily" finds the link to use for a sassdoc. It attempts to match the `lastLink`,
but otherwise searches the `LINKS` for a match.

@param {String} ref - the ref to match with
@return {String} link - the link to use for the ref.
Lazily finds the link to use for a sassdoc . It attempts to match the lastLink but otherwise searches the LINKS for a match .