code: function truncate(el) {
      if (!el) {
          return;
      }
  
      const text = el.textContent;
  
      if (this.isTextOverflowing(el)) {
          const checkFunc = i => {
              el.textContent = text.substring(0, i);
              return this.isTextOverflowing(el) ? -1 : 0;
          };
          const len = binarySearch(text.length - 1, checkFunc);
          const truncatedText = text.substring(0, len).slice(0, -2);
          el.innerHTML = `<span aria-hidden="true">${truncatedText}…</span><span class="clipped">${text}</span>`;
      }
  }
docs: Adds an ellipsis to a el based on the height and width
  specified in CSS rules