function runFilter(filterString, currentTiddler, toWL) {

    // Solves https://github.com/felixhayashi/TW5-TiddlyMap/issues/278
    const parentWidget = new Widget.widget({});
    parentWidget.setVariable("currentTiddler", currentTiddler);
    const widget = new Widget.widget({}, {"parentWidget": parentWidget});
    //noinspection UnnecessaryLocalVariableJS
    const toRefs = utils.getMatches(filterString, toWL, widget);

    return toRefs;

  }
Runs a filter and returns an array of the results.
Ensures currentTiddler is set.