Noticed some more problems in older (albeit unsupported) browsers

This commit is contained in:
Jeff 2016-10-26 13:25:02 -07:00 committed by Jeff Parsons
commit 8e1dd595ec
3 changed files with 21 additions and 2 deletions

View file

@ -1077,6 +1077,15 @@ if (!Array.prototype.indexOf) {
}
}
/*
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
*/
if (!Array.isArray) {
Array.isArray = function (arg) {
return Object.prototype.toString.call(arg) === '[object Array]';
};
}
/*
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
*/