Class: LimitedCollection

LimitedCollection

A Collection which holds a max amount of entries. The first key is deleted if the Collection has reached max size.

Constructor

(private) new LimitedCollection(maxSizeopt, iterableopt)

Parameters:
Name Type Attributes Default Description
maxSize number <optional>
0 The maximum size of the Collection
iterable Iterable <optional>
null Optional entries passed to the Map constructor.
Source:

Extends

  • Collection

Members

maxSize :number

The max size of the Collection.
Type:
  • number
Source: