src/js/revealing-modal.js
/**
   * Build the modal and append it to the dom
   *
   * @param {array} modals - a list of the raw elements of the modal from the DOM
   * @return {array} a list of the new elements apended to the DOM
   */
Build the modal and append it to the dom
@param {array} modals - a list of the raw elements of the modal from the DOM
@return {array} a list of the new elements apended to the DOM
Build the modal and append it to the dom @param { array } modals - a list of the raw elements of the modal from the DOM @return { array } a list of the new elements apended to the DOM
function _buildModal(modals) {
    return modals.map((el, i) => {
      el.innerHTML = modalTemplate(el.innerHTML);
      return document.body.appendChild(el);
    });
  }
function _buildModal ( modals ) { return modals . map ( ( el , i ) => { el . innerHTML = modalTemplate ( el . innerHTML ) ; return document . body . appendChild ( el ) ; } ) ; }
Build the modal and append it to the dom
 @param {array} modals - a list of the raw elements of the modal from the DOM
 @return {array} a list of the new elements apended to the DOM
Build the modal and append it to the dom @param { array } modals - a list of the raw elements of the modal from the DOM @return { array } a list of the new elements apended to the DOM