}
}
- /** @inheritdoc */
+ /** @inheritDoc */
public push (...items: T[]): number {
const length = super.push(...items)
if (length > this.size) {
return this.length
}
- /** @inheritdoc */
+ /** @inheritDoc */
public unshift (...items: T[]): number {
const length = super.unshift(...items)
if (length > this.size) {
return this.length
}
- /** @inheritdoc */
+ /** @inheritDoc */
public concat (...items: Array<T | ConcatArray<T>>): CircularArray<T> {
const concatenatedCircularArray = super.concat(
items as T[]
return concatenatedCircularArray
}
- /** @inheritdoc */
+ /** @inheritDoc */
public splice (start: number, deleteCount?: number, ...items: T[]): T[] {
let itemsRemoved: T[]
if (arguments.length >= 3 && deleteCount !== undefined) {