IE 11 AngularJS error - Object doesn't support property or method 'from'
<p>In my JavaScript I have a function <code>detectEnvironmentAndGetLEAndDepot()</code> which is called <code>onload</code> via HTML.  I'm working with wicket, and need to take values held in the back-end, so I fire them to the screen, hide them, and search the <code>&lt;span&gt;</code> values from my JS for the <code>name</code> value, for example <code>if(v.getAttribute('name') === 'LE'){do stuff}</code> or <code>if(v.getAttribute('name') === 'depot'){do stuff}</code> (I'm sure not the most elegant solution, but I needed a quick one!).  Then within the function <code>detectEnvironmentAndGetLEAndDepot()</code> I do a bit of formatting etc so the data is usable.</p>

<p><code>detectEnvironmentAndGetLEAndDepot()</code> function (quite long, only relevant part) - </p>

<pre><code>detectEnvironmentAndGetLEAndDepot = function() {

    Array.from(document.getElementsByTagName('span')).forEach(function(v) {

//Search name tag for particular names, then do formatting
}
</code></pre>

<p>When I open this in IE11 I get the error in a popup <code>SCRIPT438: Object doesn't support property or method 'from'</code> which is related to the first line of the method above - the <code>Array</code> class.  Help much appreciated.</p>