Confirmed users
596
edits
(→API) |
|||
| Line 93: | Line 93: | ||
* | * | ||
* @returns {Array} new JS array with all items | * @returns {Array} new JS array with all items | ||
contents : function( | contents : function() | ||
* Provides an iterator, i.e. allows to write: | |||
* var coll = new Set(); | |||
* for each (let item in coll) | |||
* debug(item); | |||
__iterator__ : function() | |||
* Pass an object that will be called when | * Pass an object that will be called when | ||
* items are added or removed from this list. | * items are added or removed from this list. | ||