Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

254 B
Raw Blame
import type { TemplateResult } from 'lit';

export function templateToString({ strings, values }: TemplateResult): string {
  return strings.reduce(
    (result, str, i) =>
      result + str + (i < values.length ? String(values[i]) : ''),
    ''
  );
}