title: How to get window.showHide global variable to change contents of a variable in one line
body: <p>I have a variable const that i can't change the name. i want to be able to do a conditional check and change its value based on the Boolean value of a window.Variable. like code below. any help would be appreciated.</p>
  <pre><code>const routes = { () =&gt; window.showHide  ? routes1 : routes2 }
  </code></pre>