ReadonlynextThe handle of the next element, or undefined for the last element or a removed one. Always
reflects the list as it is now; reading it never throws. Time: O(1).
ReadonlypreviousThe handle of the previous element, or undefined for the first element or a removed one.
Always reflects the list as it is now; reading it never throws. Time: O(1).
The element. Setting it replaces the element in place, changes the list's revision and does
not disturb open iterators, which return the new value if they have not reached it yet.
Time: O(1).
A handle to one element of a
LinkedList: the list's methods take it to insert or remove next to that element in O(1). Each element has exactly one handle for as long as it is in the list, whichever method added it. Once the element is removed, the handle'snextandpreviousareundefined, itsvaluecan still be read, and the list's methods refuse it.A handle prints only its value (
LinkedListNode { value: 1 }) and shows nothing toJSON.stringifyorObject.keys.Example