import { VariableView } from "./VariableView"; /** * Confirm whether there are valid mustache tags remaining in the template string. * @param template * @returns */ export function hasValidMustacheTags(template: string): boolean { return template.includes("{{") && template.includes("}}"); }; export function hasDuplicates(arr:any[]){ return new Set(arr).size !== arr.length; }; function hasVariable(label:string){ return VariableView.allNames.includes(label); };