Search code examples
internet-explorerpolyfills

I found Polyfill for IE To support Array.from . How do i include in my html?


Here is the polyfill Location :

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Polyfill


Solution

  • Put it in a <script> tag before the JavaScript that uses that feature. The polyfill is simply JavaScript that modifies the Array.prototype object so that arrays have the new feature, and it needs to run before code that expects that feature to be there.