"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.unwrap = unwrap;
/**
 * Takes all children out from wrapped el and puts them directly inside
 * the parent el, at the wrapped el's position
 */
function unwrap(parent, wrapped) {
  var docsFragment = document.createDocumentFragment();
  Array.from(wrapped.children).forEach(function (child) {
    docsFragment.appendChild(child);
  });
  parent.replaceChild(docsFragment, wrapped);
}