src/service/extensions-impl.js
/**
   * Installs all ampdoc factories previously registered with
   * `addDocFactory_`.
   * @param {!./ampdoc-impl.AmpDoc} ampdoc
   * @param {!Array<string>} extensionIds
   * @return {!Promise}
   * @private
   * @restricted
   */
Installs all ampdoc factories previously registered with
`addDocFactory_`.
Installs all ampdoc factories previously registered with ` addDocFactory_ ` .
installExtensionsInDoc_(ampdoc, extensionIds) {
    const promises = [];
    extensionIds.forEach(extensionId => {
      promises.push(this.installExtensionInDoc_(ampdoc, extensionId));
    });
    return Promise.all(promises);
  }
installExtensionsInDoc_ ( ampdoc , extensionIds ) { const promises = [ ] ; extensionIds . forEach ( extensionId => { promises . push ( this . installExtensionInDoc_ ( ampdoc , extensionId ) ) ; } ) ; return Promise . all ( promises ) ; }
Installs all ampdoc factories previously registered with
 `addDocFactory_`.
Installs all ampdoc factories previously registered with ` addDocFactory_ ` .