_.gt

Checks if value is greater than other.

  1. // Lodash
  2. console.log(_.gt(3, 1))
  3. // output: true
  4.  
  5. // Native
  6. console.log(3 > 1);
  7. // output: true

Browser Support

ChromeEdgeFirefoxIEOperaSafari