insertDestinations_(destinations) {
      let inserted = false;
      destinations.forEach(destination => {
        if (Array.isArray(destination)) {
          // privet printers return arrays of 1 or 2 printers
          inserted = destination.reduce(function(soFar, d) {
            return this.insertIntoStore_(d) || soFar;
          }, inserted);
        } else {
          inserted = this.insertIntoStore_(destination) || inserted;
        }
      });
      if (inserted) {
        this.destinationsInserted_();
      }
    }
/**
     * Inserts multiple {@code destinations} to the data store and dispatches
     * single DESTINATIONS_INSERTED event.
     * @param {!Array<!print_preview.Destination |
     *                !Array<print_preview.Destination>>} destinations Print
     *     destinations to insert.
     * @private
     */
Inserts multiple  destinations to the data store and dispatches
single DESTINATIONS_INSERTED event.
@param {!Array>} destinations Print
destinations to insert.
@private
Inserts multiple destinations to the data store and dispatches single DESTINATIONS_INSERTED event . @param { !Array > } destinations Print destinations to insert . @private
insertDestinations_(destinations) {
      let inserted = false;
      destinations.forEach(destination => {
        if (Array.isArray(destination)) {
          inserted = destination.reduce(function(soFar, d) {
            return this.insertIntoStore_(d) || soFar;
          }, inserted);
        } else {
          inserted = this.insertIntoStore_(destination) || inserted;
        }
      });
      if (inserted) {
        this.destinationsInserted_();
      }
    }
insertDestinations_ ( destinations ) { let inserted = false ; destinations . forEach ( destination => { if ( Array . isArray ( destination ) ) { inserted = destination . reduce ( function ( soFar , d ) { return this . insertIntoStore_ ( d ) || soFar ; } , inserted ) ; } else { inserted = this . insertIntoStore_ ( destination ) || inserted ; } } ) ; if ( inserted ) { this . destinationsInserted_ ( ) ; } }
Inserts multiple {@code destinations} to the data store and dispatches
 single DESTINATIONS_INSERTED event.
Inserts multiple { @code destinations } to the data store and dispatches single DESTINATIONS_INSERTED event .
// privet printers return arrays of 1 or 2 printers