Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MapResult

An object representing a mapped position with extra information.

class MapResult {
get deleted(): boolean;
get deletedBefore(): boolean;
get deletedAfter(): boolean;
get deletedAcross(): boolean;
readonly pos: number;
}

§Properties

§
deleted: boolean readonly
[src]

Tells you whether the position was deleted, that is, whether the step removed the token on the side queried (via the assoc) argument from the document.

§
deletedBefore: boolean readonly
[src]

Tells you whether the token before the mapped position was deleted.

§
deletedAfter: boolean readonly
[src]

True when the token after the mapped position was deleted.

§
deletedAcross: boolean readonly
[src]

Tells whether any of the steps mapped through deletes across the position (including both the token before and after the position).

§
pos: number
[src]

The mapped version of the position.