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.

Array.prototype.includes() not supported by IE

See original GitHub issue

When visiting beta through IE, the site is unusable. There are two instances of includes in the code base outside of the gulp file, and two solutions for fixing this.

  1. Add a polyfill for Array.prototype.includes() or
  2. Refactor to remove Array.prototype.includes()

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
no-stack-dub-sackcommented, Feb 11, 2017

@Bouncey This may be thinking a bit too far down the line, but I’ve been aware of this for some time since @bonham000 and I ran into this issue when we were developing the React curriculum. Several of those challenges err… include includes() 😄

So I guess my point is, maybe a polyfill is the best solution?

0reactions
QuentinGibsoncommented, Feb 20, 2017

@BerkeleyTrue I can work on refactoring this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

includes() not working in Internet Explorer - javascript
String.prototype.includes is, as you write, not supported in Internet Explorer (or Opera). Instead you can use String.prototype.indexOf .
Read more >
Cross Browser Compatibility of Array.prototype.includes in ...
Array.prototype.includes is Not Supported on Internet Explorer 11. If you use Array.prototype.includes and your users are using Internet ...
Read more >
Conflict with IE11 due to usage of Array.prototype.includes()
Problem/Motivation. The matchCookieValue function doesn't work in IE11 , due to use of Array.prototype.includes():
Read more >
Array.Includes is not supported on IE11 · Issue #27 - GitHub
Successfully merging a pull request may close this issue. fix(convert function): "Array.prototype.includes" throwing in IE kentcdodds/rtl-css-js.
Read more >
Array.prototype.includes | Can I use... Support ... - CanIUse
Determines whether or not an array includes the given value, returning a boolean value (unlike indexOf ). Usage % of. all users, all...
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