title: How to evaluate js values using < > operators from wasm?
body: <p>Go has an <a href="https://golang.org/pkg/syscall/js/#Value.Equal" rel="nofollow noreferrer">equal</a> method to test equality between JS values. How can we use greater (or less) operators to evaluate js values ?  Do I need to write a javascript function  in js(i.e. <code>function GT(a, b, op){return eval(a, op, b)}</code>) just for that?</p>
  <pre><code>var a, b js.Value 
  
  // test if a &gt; b or b &gt; a 
  </code></pre>