Classes
Methods
- 
			<inner> add( key, item )
- 
	DescriptionAdds an item to the collection ParametersName Type Description key* The key to use for the item being added. item* The item to add to the collection. The item is not iterated so that you could add bundled items to the collection Details
- 
			<inner> each( [ query ], iterator [, thisobj ] )
- 
	DescriptionIterate over each item in the collection, or a subset that matches a query. This supports two signatures: .each(query, function)and.each(function). If you pass in a query, only the items that match the query
 are iterated over.ParametersName Type Attributes Description queryobject <optional> A query to evaluate iteratorfunction Function to execute against each item in the collection thisobjobject <optional> The value of thisDetails
- 
			<inner> toArray() → {array}
- 
	DescriptionReturns the collection as an array. If it is already an array, it just returns that. ReturnsDetails
- 
			<inner> toJSON() → {object}
- 
	DescriptionSupports conversion to a JSON string or for passing over the wire ReturnsDetails
- 
			<inner> map( [ query ], iterator [, thisobj ] )
- 
	DescriptionMaps the contents to an array by iterating over it and transforming it. You supply the iterator. Supports two signatures: .map(query, function)and.map(function). If you pass in a query, only the items that match the query
 are iterated over.ParametersName Type Attributes Description queryobject <optional> A query to evaluate iteratorfunction Function to execute against each item in the collection thisobjobject <optional> The value of thisDetails
- 
			<inner> reduce( [ query ], iterator [, accumulator [, thisobj ] ] ) → {*}
- 
	DescriptionReduces a collection to a value which is the accumulated result of running each element in the collection through the 
 callback, where each successive callback execution consumes the return value of the previous execution. If accumulator
 is not passed, the first element of the collection will be used as the initial accumulator value.
 are iterated over.ParametersName Type Attributes Description queryobject <optional> A query to evaluate iteratorfunction The function that will be executed in each item in the collection accumulator* <optional> Initial value of the accumulator. thisobjobject <optional> The value of thisReturnsDetails
- 
			<inner> countBy( [ query ], iterator [, thisobj ] ) → {object}
- 
	DescriptionCreates an object composed of keys returned from running each element 
 of the collection through the given callback. The corresponding value of each key
 is the number of times the key was returned by the callback.ParametersName Type Attributes Description queryobject <optional> A query to evaluate. If you pass in a query, only the items that match the query 
 are iterated over.iteratorfunction thisobjobject <optional> The value of thisReturnsDetails
- 
			<inner> groupBy( [ query ], iterator [, thisobj ] ) → {object}
- 
	DescriptionCreates an object composed of keys returned from running each element of the collection through the callback. 
 The corresponding value of each key is an array of elements passed to callback that returned the key.
 The callback is invoked with three arguments: (value, index|key, collection).ParametersName Type Attributes Description queryobject <optional> A query to evaluate . If you pass in a query, only the items that match the query 
 are iterated over.iteratorfunction thisobjobject <optional> The value of thisReturnsDetails
- 
			<inner> pluck( [ query ], property ) → {*}
- 
	DescriptionReduce the collection to a single value. Supports two signatures: .pluck(query, function)and.pluck(function)ParametersName Type Attributes Description queryobject <optional> The query to evaluate. If you pass in a query, only the items that match the query 
 are iterated over.propertystring The property that will be 'plucked' from the contents of the collection ReturnsDetails
- 
			<inner> sortBy( [ query ], iterator [, thisobj ] ) → {array}
- 
	DescriptionReturns a sorted copy of the collection. ParametersName Type Attributes Description queryobject <optional> The query to evaluate. If you pass in a query, only the items that match the query 
 are iterated over.iteratorfunction thisobjobject <optional> The value of thisReturnsDetails
- 
			<inner> max( [ query ], iterator [, thisobj ] ) → {number}
- 
	DescriptionRetrieves the maximum value of an array. If callback is passed, 
 it will be executed for each value in the array to generate the criterion by which the value is ranked.ParametersName Type Attributes Description queryobject <optional> A query to evaluate . If you pass in a query, only the items that match the query 
 are iterated over.iteratorfunction thisobjobject <optional> The value of thisReturnsDetails
- 
			<inner> min( [ query ], iterator [, thisobj ] ) → {number}
- 
	DescriptionRetrieves the minimum value of an array. If callback is passed, 
 it will be executed for each value in the array to generate the criterion by which the value is ranked.ParametersName Type Attributes Description queryobject <optional> A query to evaluate . If you pass in a query, only the items that match the query 
 are iterated over.iteratorfunction thisobjobject <optional> The value of thisReturnsDetails
- 
			<inner> destroy()
- 
	DescriptionDestructor called when the object is destroyed. Details
- 
			<inner> key( key ) → {*}
- 
	DescriptionGet a record by key ParametersName Type Description key* The key of the record to get ReturnsDetails
- 
			<inner> add( item )
- 
	DescriptionAdds to the top of the collection ParametersName Type Description item* The item to add to the collection. Only one item at a time can be added Details
- 
			<inner> append( item )
- 
	DescriptionAdd to the bottom of the list ParametersName Type Description item* The item to add to the collection. Only one item at a time can be added Details
- 
			<inner> push( item )
- 
	DescriptionAdd an item to the top of the list. This is identical to add, but is provided for stack semanticsParametersName Type Description item* The item to add to the collection. Only one item at a time can be added Details
- 
			<inner> compact()
- 
	DescriptionModifies the collection with all falsey values of array removed. The values false, null, 0, "", undefined and NaN are all falsey. Details
- 
			<inner> at( args )
- 
	DescriptionCreates an array of elements from the specified indexes, or keys, of the collection. Indexes may be specified as 
 individual arguments or as arrays of indexesParametersName Type Description argsindexes The indexes to use Details
- 
			<inner> flatten( [ query ], iterator, [, thisobj ] ) → {number}
- 
	DescriptionFlattens a nested array (the nesting can be to any depth). If isShallow is truthy, array will only be flattened a single level. 
 If callback is passed, each element of array is passed through a callback before flattening.ParametersName Type Attributes Description queryobject <optional> A query to evaluate . If you pass in a query, only the items that match the query 
 are iterated over.iterator,function thisobjobject <optional> The value of thisReturnsDetails
- 
			<inner> index( key ) → {*}
- 
	DescriptionGets an items by its index ParametersName Type Description keynumber The index to get ReturnsDetails
- 
			<static> collect( obj ) → {ACollector|OCollector}
- 
	DescriptionCollect an object ParametersName Type Description objarray | object What to collect ReturnsDetails