The Collection() constructor creates Collection objects.
Checks if the collection is empty or not.
Gets the amount of elements in this collection.
Returns an iterable of entries in the map.
Removes all elements from the collection.
Creates a new collection based on this one.
Merges the specified collections into one and returns a new collection.
collections to merge
Removes element from the collection.
key of element
Returns an iterable of key, value pairs for every entry in the map.
Checks if two collections are equal.
collection to compare to
options to use
Checks if all values satisfy the condition.
function to use
Filters out the elements which don't meet requirements and returns array (default).
function to use
filter options
Filters out the elements which don't meet requirements and returns collection (return collection option is specified).
function to use
filter options
Filters out the elements which don't meet requirements and returns map (return map option is specified).
function to use
filter options
Searches for the element in collection and returns it.
function to use
Searches for the key in collection and returns it.
function to use
Returns first collection value if it exists.
Returns first N collection values.
Returns first collection key if it exists.
Returns first N collection keys.
Executes a function on each of elements of collection.
function to use
Gets element from collection.
key of element
Checks if an element exists in the collection.
key of element
Returns a collection chunked into several collections.
chunk size
Returns an iterable of keys in the map
Returns last collection value if it exists.
Returns last N collection values.
Returns last collection key if it exists.
Returns first N collection keys.
Maps each item to another value into an array.
function to use
Gets a random value from collection.
Gets a random values from collection.
amount of values to get
Gets a random values from collection (returnType values option is specified).
amount of values to get
method options
Gets a random keys from collection (returnType keys option is specified).
amount of values to get
method options
Gets a random blocks from collection (returnType blocks option is specified).
amount of values to get
method options
Gets a random value from collection (returnType values option is specified, amount not specified).
not specified in this case
method options
Gets a random key from collection (returnType keys option is specified, amount not specified).
not specified in this case
method options
Gets a random block from collection (returnType block option is specified, amount not specified).
not specified in this case
method options
Executes a predicate function on each element of the collection, resulting in a single output value.
function to use
initial value for the accumulator
Sets a new element in the collection.
key of element
value (element) to set
Checks if any of values satisfies the condition.
function to use
Returns an iterable of values in the map
Generated using TypeDoc
An utility data structure used within the Discordoo.