index of greater vs index of unequal

Edit on GitHub

Setup

Tests

  • index of greater

    var a = 'string';
    a.indexOf('trin') > -1
  • index of unequal

    var a = 'string';
    a.indexOf('trin') !== -1