diff --git a/src/ol/collection.js b/src/ol/collection.js index b7fd26bd30..0aefa4f641 100644 --- a/src/ol/collection.js +++ b/src/ol/collection.js @@ -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.} arr Array. * @return {ol.Collection.} 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) {