Initializes a new instance of the utilities/CollectionProxy!CollectionProxy class.
Optionalcollection: Collection<T>The underlying collection to delegate to, or a function that produces the underlying collection.
Optionaloptions: CollectionProxyOptionsControls lifecycle behavior for the wrapped collection.
Protected Readonly_handlesThe declared class name. This is always "esri.core.Collection" for
compatibility with Esri's API.
Protected_collectionWhether the collection has been destroyed.
Whether the collection has been initialized.
Set to true once the initialize function has executed.
Returns a collection of the initialized items.
The number of items in the collection.
Protected_getProtected_itemReturns whether an item in the collection is considered initialized.
The item being checked for initialization.
Protected_setAdds a single item to the collection.
Optional_index: numberAdds multiple items to the collection.
An array or collection of items to add.
Optionalindex: numberZero-based index of where in the collection to add the items. If not specified, the items will be added at the end.
OptionalthisArg: anyDetermines whether all items in the Collection pass a test defined by callback. Each item in the Collection is passed into the callback until one returns a value of false.
The function to call for each item in the Collection.
Filters the Collection's items based on a test defined by the callback function. Each item is passed into the callback function, which returns true if the item passes the test and false if it does not.
The function that defines a test for determining whether to return the item in a new Collection.
Returns an item in the Collection if that item passes a test as defined in the callback function. Each item is passed into the callback function, which returns true if the item passes the test and false if it does not.
The testing function that will assess each item in the Collection. Returns true if an item passes the test and false if it fails.
Returns the index of an item in the Collection if that item passes a test as defined in the callback function. Each item is passed into the callback function, which returns true if the item passes the test and false if it does not.
The testing function that will assess each item in the Collection. Returns true if an item passes the test and false if it fails.
Returns the index of the Collection item that satisfies the test function. If an item fails the test, -1 is returned.
Flattens a hierarchical Collection containing at least one child collection. Each item in the collection is passed into the callback function, which should check for child collections specified by the developer. A flat collection of all items (parent and children) is returned.
Executes the input function for each item in the Collection.
The function to call for each item in the Collection.
Tests if an item is present in the Collection.
The item to search for in the collection.
Returns the index of an element in the collection.
Item to search for in the collection.
OptionalfromIndex: numberUse if you don't want to search the whole collection or you don't want to search from the start.
Returns the last index of an element in the collection.
Item to search for in the collection.
OptionalfromIndex: numberUse if you don't want to search the whole collection, or you don't want to search from the end.
The location of the last match found in the collection, or -1 if there is no match.
Passes each Collection item into the callback function and returns a new array of the returned values.
The function that processes each item in the Collection and returns a new value at the same index of the original item.
ProtectednotifyAdds an item to the end of the collection.
The item to add.
Reduces all items in the collection (from left to right) into a single variable using callback.
The function that processes each item in the Collection and appends it to the previous item.
OptionalinitialValue: UItem to use as the first element to process in callback.
Reduces all items in the collection (from right to left) into a single variable using callback.
The function that processes each item in the Collection and appends it to the previous item.
OptionalinitialValue: UItem to use as the first element to process in callback.
Determines whether an item in the Collection passes a test defined by callback. Each item in the Collection is passed into the callback until one returns a value of true.
The function that defines the test for each Collection item.
Adds an item to the beginning of the collection.
The item to add.
Optionalsync: boolean
A read-only collection.