meteor/binary-heap/max-heap.js
function (iterator) {
    var self = this;
    _.each(self._heap, function (obj) {
      return iterator(obj.value, obj.id);
    });
  }
function (iterator) {
    var self = this;
    _.each(self._heap, function (obj) {
      return iterator(obj.value, obj.id);
    });
  }
function ( iterator ) { var self = this ; _ . each ( self . _heap , function ( obj ) { return iterator ( obj . value , obj . id ) ; } ) ; }
iterate over values in no particular order
iterate over values in no particular order