Polyfill-service: IE 11 issue - .includes() is not supported

Created on 31 Aug 2016  路  2Comments  路  Source: Financial-Times/polyfill-service

Bug

In IE11 I get the following error while I included the polyfill.

Object doesn't support property or method 'includes'
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>

image

Cause

It goes wrong here

Is there any reason why includes isn't correctly replaced?

Most helpful comment

Array.prototype.includes is not in the default set of polyfills.

You can add it to your request as follows:
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,Array.prototype.includes"></script>

All 2 comments

Array.prototype.includes is not in the default set of polyfills.

You can add it to your request as follows:
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,Array.prototype.includes"></script>

@JakeChampion Thank you! That did it.

Was this page helpful?
0 / 5 - 0 ratings