src/index.js
function orphanContainerChildren (container, rouge = false) {
  container = fetchContainer(container)

  const children = container.children

  if (null == container)
    throw new TypeError( "orphanContainerChildren() Expecting a container " )

  for (let child of children) {
    container.removeChild(child)
    if (true === rouge) {
      orphanContainerChildren(child, true)
      CONTAINERS.delete(child.id)
    }
  }
}
function orphanContainerChildren (container, rouge = false) {
  container = fetchContainer(container)

  const children = container.children

  if (null == container)
    throw new TypeError( "orphanContainerChildren() Expecting a container " )

  for (let child of children) {
    container.removeChild(child)
    if (true === rouge) {
      orphanContainerChildren(child, true)
      CONTAINERS.delete(child.id)
    }
  }
}
function orphanContainerChildren ( container , rouge = false ) { container = fetchContainer ( container ) const children = container . children if ( null == container ) throw new TypeError ( "orphanContainerChildren() Expecting a container " ) for ( let child of children ) { container . removeChild ( child ) if ( true === rouge ) { orphanContainerChildren ( child , true ) CONTAINERS . delete ( child . id ) } } }
Orphan container.

@private
@param {Container} container
@param {Boolean} [rouge]
Orphan container .