Constructors PropertiesProtected
Optional
_capacity _capacity ?: number
Protected
_capacity Mask _capacityMask : number
Protected
_head _head : number
Protected
_tail _tail : number
Accessorslength get length () : number Returns number Methods[iterator] "[iterator]" () : Iterator < T , any , any > Returns Iterator < T , any , any > at at ( index : number ) : undefined | T Returns undefined | T clear clear () : void Returns void find find ( predicate : ( item : T ) => boolean ) : undefined | T Parameters predicate : ( item : T ) => boolean Returns undefined | T find Index findIndex ( predicate : ( item : T ) => boolean ) : number Parameters predicate : ( item : T ) => boolean Returns number includes includes ( item : T ) : boolean Returns boolean index Of indexOf ( item : T ) : number Returns number is Empty isEmpty () : boolean Returns boolean peek Back peekBack () : undefined | T Returns undefined | T peek Front peekFront () : undefined | T Returns undefined | T pop Back popBack () : undefined | T Returns undefined | T pop Front popFront () : undefined | T Returns undefined | T push Back pushBack ( item : T ) : number Returns number push Front pushFront ( item : T ) : number Returns number remove By removeBy ( predicate : ( item : T ) => boolean ) : void Parameters predicate : ( item : T ) => boolean Returns void remove One removeOne ( index : number ) : undefined | T Returns undefined | T to Array toArray () : T [] Returns T []
Custom implementation of a double ended queue.