true if collection is empty else false
Returns an iterable of entries in the map.
Value to add to the collection
The array with items
A function that returns a result
A function that returns a result
Element you want to check
true if element is in collection else false
The collection with values you want to check
true if all values are in this collection else false
A function that returns a result
Returns an iterable of key, value pairs for every entry in the map.
A function that returns true if it matches the given param
An array with all the elements that evaluated true
A function that returns true if it matches the given param
The first matching object or undefined if none found
Returns an iterable of keys in the map
A function that returns a result
An array with the results
A collection to merge together with this
The merged collection
The random object or undefined if none exist
The item to delete
Returns an iterable of values in the map
The array you want to create a collection from
The created collection
All the collections you want to merge together
Generated using TypeDoc
Another way is to use
base: new () => T
orbase: T&Function
but this does not work with abstract classes.const collection = new Collection<array>(null, ["foo", "bar", "baz"]); const collection = new Collection<array>(Array, ["foo", "bar", "baz"]) const collection = new Collection<array>(Array)