question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

includes support for IE 9+

See original GitHub issue

A very simple workaround is

var array = [1, 2, 3];
array.indexOf(1) !== -1;
// → true

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
markogresakcommented, Jan 27, 2016

@IonicaBizau I do not know why would that be simpler, other than in number of characters used. The readability of this code is bad and might even be confusing for people who do not know about unary operators and how bitwise negation works, which is especially true for new programmers. Performance wise, there is next to none difference.

1reaction
stevenvachoncommented, May 7, 2018

Some features, such as Object.assign, have a rule despite having no implementation in IE. I think that this issue can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internet Explorer 9 - Wikipedia
Internet Explorer 9 supports ECMAScript 5 (ES5), several CSS 3 properties and embedded ICC v2 or v4 color profiles support via Windows Color...
Read more >
Internet Explorer 9 - Microsoft Lifecycle
Internet Explorer 9 follows the Component Lifecycle Policy. Support dates are shown in the Pacific Time Zone (PT) - Redmond, WA, USA. Support...
Read more >
Browser comparison | Can I use... Support tables for HTML5 ...
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >
CSS3 Support in Internet Explorer 9 - Impressive Webs
I've created a few charts showing CSS3 support in IE9 Beta. The list does not include every conceivable CSS3 property or selector.
Read more >
Internet Explorer 9 - HowToCreate
The IE 9 install overwrites the IE 7 or IE 8 install. It is possible to use IETester to test previous versions. IE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found