without i vs with i

Edit on GitHub

comparing regex i operator

Setup

Tests

  • without i

    /Mac/.test(navigator.platform)
  • with i

    /Mac/i.test(navigator.platform)