title: How to clear the entire call stack of the browser on the basis of a certain condition?
body: <p>I want to clear my entire call stack of the browser when a certain function gets executed in my React JS code.</p>