static removeElementFromDom()

in src/utilities/graph-util.js [105:115]


  static removeElementFromDom(id: string, searchElement?: any = document) {
    const container = searchElement.querySelector(`[id='${id}']`);

    if (container && container.parentNode) {
      container.parentNode.removeChild(container);

      return true;
    }

    return false;
  }