export default function replaceWith(element, newElement) {
  this.parentNode.replaceChild(newElement, element)
}

export default function replaceWith(element, newElement) {
  element.parentNode.replaceChild(newElement, element)
}

Fix bug in replaceWith