Home > harper.js > Span
A struct that represents two character indices in a string: a start and an end.
Signature:
export declare class Span
Property
Modifiers
Type
Description
end
number
start
Method
free()
from_json(json)
static
is_empty()
len()
new(start, end)
to_json()