A range of a source text, from the offset start up to the offset end, which is left out. An offset counts UTF-16 code units, so text.slice(span.start, span.end) is the text of the span.
start
end
text.slice(span.start, span.end)
Readonly
A range of a source text, from the offset
startup to the offsetend, which is left out. An offset counts UTF-16 code units, sotext.slice(span.start, span.end)is the text of the span.