CircularlyLinkedList
Generic types (only for TS):
new CircularlyLinkedList()
/**
* Creates an instance of CircularlyLinkedList.
*
* @param elements Array of elements to create the new linked list with.
*/
constructor(elements: T[] = [])new CircularlyLinkedList([1, 2, 3]);length
/**
* Number of elements in the list.
*
* @readonly
*/
get length(): numberaddAfter()
addCurrent()
clear()
getAfter()
getCurrent()
getLast()
isEmpty()
removeCurrent()
replace()
rotate()
[Symbol.iterator]()
See also
Last updated