Edgewise API
    Preparing search index...

    Function replaceSpans

    • Replace spans in text. Spans must not overlap; they are applied right to left.

      Parameters

      • text: string
      • found: Pick<Span, "type" | "start" | "end">[]
      • mask: (s: Pick<Span, "start" | "end" | "type">) => string

      Returns string