function appendChildren (parent, children) {
  let len = children.length
  if (len <= 2) {
    parent.appendChild(children[0])
    if (len === 2) parent.appendChild(children[1])
    return
  }

  let frag = document.createDocumentFragment()
  for (let i = 0; i < len; i++) frag.appendChild(children[i])
  parent.appendChild(frag)
}
/** Append multiple children to a Node.
 *    Uses a Document Fragment to batch when appending 2 or more children
 *    @private
 */
Append multiple children to a Node.
Uses a Document Fragment to batch when appending 2 or more children
@private
Append multiple children to a Node . Uses a Document Fragment to batch when appending 2 or more children @private
function appendChildren (parent, children) {
  let len = children.length
  if (len <= 2) {
    parent.appendChild(children[0])
    if (len === 2) parent.appendChild(children[1])
    return
  }
  let frag = document.createDocumentFragment()
  for (let i = 0; i < len; i++) frag.appendChild(children[i])
  parent.appendChild(frag)
}
function appendChildren ( parent , children ) { let len = children . length if ( len <= 2 ) { parent . appendChild ( children [ 0 ] ) if ( len === 2 ) parent . appendChild ( children [ 1 ] ) return } let frag = document . createDocumentFragment ( ) for ( let i = 0 ; i < len ; i ++ ) frag . appendChild ( children [ i ] ) parent . appendChild ( frag ) }
Append multiple children to a Node.
Append multiple children to a Node .