src/component.js
function destroyInstance() {
  const {
    selection, datum, destroy, index,
  } = getInstance(this);
  selection.selectAll('*').each(destroyDescendant);
  const transition = destroy(selection, datum, index);
  (transition || selection).remove();
}
function destroyInstance() {
  const {
    selection, datum, destroy, index,
  } = getInstance(this);
  selection.selectAll('*').each(destroyDescendant);
  const transition = destroy(selection, datum, index);
  (transition || selection).remove();
}
function destroyInstance ( ) { const { selection , datum , destroy , index , } = getInstance ( this ) ; selection . selectAll ( '*' ) . each ( destroyDescendant ) ; const transition = destroy ( selection , datum , index ) ; ( transition || selection ) . remove ( ) ; }
Destroys the component instance and its descendant component instances.
Destroys the component instance and its descendant component instances .