Jetpack/Collections: Difference between revisions

Jump to navigation Jump to search
Line 93: Line 93:
   *
   *
   * @returns {Array} new JS array with all items
   * @returns {Array} new JS array with all items
   contents : function(item)
   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.
Confirmed users
596

edits

Navigation menu