Constructor.
An optional buffer size.
Returns an iterator of a section of this buffer.
An optional callback filter.
Returns an iterator of a section of this buffer.
The beginning index of the specified portion of the buffer.
Optionalend: numberThe end index of the specified portion of the buffer. This is exclusive of the element at the index 'end'. If end is undefined, then the slice extends to the end of the buffer.
Returns an iterator of a section of this buffer.
The beginning index of the specified portion of the buffer.
Optionalend: numberThe end index of the specified portion of the buffer. This is exclusive of the element at the index 'end'. If end is undefined, then the slice extends to the end of the buffer.
Optionalfilter: (value: T) => booleanAn optional callback filter.
Holds a data in a ring-buffer.