PROWAREtech
JavaScript: IE11 Array.isArray() Method/Function
Create the Array.isArray() function for Internet Explorer 11.
Still developing for IE11? Well, the Array.isArray()
function is used to detect arrays on IE11.
Array.isArray = Array.isArray || function (arg) {
return Object.prototype.toString.call(arg) == "[object Array]";
};
Using the above code snippet:
Array.isArray = Array.isArray || function (arg) {
return Object.prototype.toString.call(arg) == "[object Array]";
};
alert("[]=" + Array.isArray([]));
Comment