Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public getVariables(pattern: RDF.BaseQuad): string[] {
return uniqTerms(getTerms(pattern)
.filter(ActorQueryOperationQuadpattern.isTermVariable))
.map(termToString);
}
return uniqTerms([].concat.apply([], patterns.map((pattern) => getVariables(getTerms(pattern)))));
}