Protected
deleteProtected
deleteRename to .rangeX() method?
Protected
formatReturns a reference to an element at a given position in the array.
The position of the element to get.
An element of the array, if any.
Returns ID of the RGA slot (not the referenced JSON node) at a given position in the array. The ID is a timestamp the unique slot of the element in the RGA. To retrieve the JSON node ID referenced by the slot, use get method.
The position of the element to get.
ID of the RGA slot.
Returns a JSON node at a given position in the array.
The position of the element to get.
A JSON node, if any.
Protected
insProtected
insProtected
insertProtected
insertContent length.
Protected
mergeProtected
mergeProtected
mergeReturns the name of the JSON node type.
Returns the position of the first element in the chunk.
ID of character to start the search from.
Previous ID in the RGA sequence.
Chunk from which to start the range. If undefined, the
chunk containing from
will be used. This is an optimization
to avoid a lookup.
ID of the first element in the range.
ID of the last element in the range.
Function to call for each chunk slice in the range. If it returns truthy value, the iteration will stop.
Reference to the last chunk in the range.
Number of chunks.
Protected
splitProtected
toUpdates an array element in-place. Used by the "upd_arr" operation.
A reference to the element slot in the array.
A new value to set in the slot.
The old value of the slot, if any.
Returns a POJO object which represents the "view" of this JSON node model.
Represents the
arr
JSON CRDT type, which is a Replicated Growable Array (RGA). Each element ot the array is a reference to another JSON CRDT node.