Collection docs
This commit is contained in:
@@ -115,6 +115,8 @@ ol.Collection.prototype.clear = function() {
|
||||
|
||||
|
||||
/**
|
||||
* Add elements to the collection. This pushes each item in the provided array
|
||||
* to the end of the collection.
|
||||
* @param {Array.<T>} arr Array.
|
||||
* @return {ol.Collection.<T>} This collection.
|
||||
* @api stable
|
||||
@@ -216,9 +218,9 @@ ol.Collection.prototype.push = function(elem) {
|
||||
|
||||
|
||||
/**
|
||||
* Removes the first occurrence of elem from the collection.
|
||||
* Remove the first occurrence of an element from the collection.
|
||||
* @param {T} elem Element.
|
||||
* @return {T|undefined} The removed element or undefined if elem was not found.
|
||||
* @return {T|undefined} The removed element or undefined if none found.
|
||||
* @api stable
|
||||
*/
|
||||
ol.Collection.prototype.remove = function(elem) {
|
||||
|
||||
Reference in New Issue
Block a user