code: function measureText (nodes, parentNode) {
    let width = 0
    for (let i = 0; i < nodes.length; i++) {
      const node = nodes[i]
      width += measure(node.textContent, node.nodeType === 1 ? node : parentNode)
    }
    return width
  }
docs: ---
  parent: TruncateText
  ---
  Finds the max potential width of set of DOM nodes.
  
  @param {DOMNode[]} nodes Array of DOM nodes.
  @param {DOMNode} parentNode The node to inherit default styles from.