The maximum number of items allowed in this Collection
Get the first value in the Collection
Get he first key in the Collection
Get the last value in the Collection
Get he last key in the Collection
Maps the Collection values into an array
Maps the Collection entries an array
Maps the Collection keys into an array
Adds an item to the cache mapped by its ID
The item you wish to add
Adds multiple items to the cache
The items you wish to add
Tests whether all items in the Collection pass the test implemented by the provided function Equivalent to Array#every() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every
A function to test for each element
Creates a new Collection with all elements that pass the test implemented by the provided callback. Identical to {@link Array.prototype.filter}
Callback function. Return true to keep the element, false otherwise
Returns the value of the item in this collection that satisfies the provided testing callback function Equivalent to Array#find() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find
A function to test for each element
Returns the matching values for the given keys inside the Collection.
Array of all keys to look for
Returns the item if exists or creates a new one and caches it.
The key of the item
The value of the item
Create a new Collection populated with the results of calling a provided callback on every element in the calling Collection. Identical to {@link Array.prototype.map}
is the type of the values the new Collection will contain
Callback function. The returned value is added to the new Collection
֛Merges collection(s) on top of this one. Replaces existing keys by newer Collections
The collection(s) to be merged on top of this one
Removes the last item from the Collection and returns that item Equivalent to Array#pop() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop
Checks if the Collection has reached its limit and sets the item using {@link Map.prototype.set}
The key to set
The value to set
Whether to add the item to the Collection if its limit was reached
Removes the first item from a Collection and returns that removed item Equivalent to Array#shift() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/shift
Tests whether at least one element in the array passes the test implemented by the provided function Equivalent to Array#some() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some
A function to test for each element
Whether the given argument is a Collection
Data to check if collection
Generated using TypeDoc
Cache holder for controllers.