X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcircular-array.ts;h=40bd19ae0fc74742380979fe05712a5e962251c6;hb=8f4878b72252b92146ae968357450df53cfa8fa7;hp=2ffee18e3a14652e1203a9af1f215a885917dbd4;hpb=4342a45e734bdf35316b34623176f741b2f81e86;p=poolifier.git diff --git a/src/circular-array.ts b/src/circular-array.ts index 2ffee18e..40bd19ae 100644 --- a/src/circular-array.ts +++ b/src/circular-array.ts @@ -17,6 +17,7 @@ export class CircularArray extends Array { } } + /** @inheritDoc */ public push (...items: T[]): number { const length = super.push(...items) if (length > this.size) { @@ -25,6 +26,7 @@ export class CircularArray extends Array { return this.length } + /** @inheritDoc */ public unshift (...items: T[]): number { const length = super.unshift(...items) if (length > this.size) { @@ -33,6 +35,7 @@ export class CircularArray extends Array { return this.length } + /** @inheritDoc */ public concat (...items: Array>): CircularArray { const concatenatedCircularArray = super.concat( items as T[] @@ -47,6 +50,7 @@ export class CircularArray extends Array { return concatenatedCircularArray } + /** @inheritDoc */ public splice (start: number, deleteCount?: number, ...items: T[]): T[] { let itemsRemoved: T[] if (arguments.length >= 3 && deleteCount !== undefined) {