packages/rebound-htmlbars/lib/render.js
function(arr){
  var i, len = arr.length;
  this.added || (this.added = {});
  arr.forEach((item) => {
    if(this.added[item.cid]){ return; }
    this.added[item.cid] = 1;
    if(item.isLazyValue){ item.makeDirty(); }
    this.push(item);
  });
}
function(arr){
  var i, len = arr.length;
  this.added || (this.added = {});
  arr.forEach((item) => {
    if(this.added[item.cid]){ return; }
    this.added[item.cid] = 1;
    if(item.isLazyValue){ item.makeDirty(); }
    this.push(item);
  });
}
function ( arr ) { var i , len = arr . length ; this . added || ( this . added = { } ) ; arr . forEach ( ( item ) => { if ( this . added [ item . cid ] ) { return ; } this . added [ item . cid ] = 1 ; if ( item . isLazyValue ) { item . makeDirty ( ) ; } this . push ( item ) ; } ) ; }
A convenience method to push only unique eleents in an array of objects to the TO_RENDER queue. If the element is a Lazy Value, it marks it as dirty in the process
A convenience method to push only unique eleents in an array of objects to the TO_RENDER queue . If the element is a Lazy Value it marks it as dirty in the process