SettimMediat ClearMmediate

let immediateID = setImmediate(() => {
  // Run some code
}
//this only works in node js and interntinternet explorer
document.getElementById("button")
  .addEventListener(() => {
  clearImmediate(immediateID);
});
Gogo