async
async copied to clipboard
_isArray in ie8
The following code is breaking for me in ie8. This is taken directly from the source code line 31:
var _isArray = Array.isArray || function (obj) {
return toString.call(obj) === '[object Array]'; //toString?
};
//here, calling _isArray([]) breaks;
This breaks various random functions in async for me in ie8. Thoughts?
I've seen other libraries do:
var _toString = Object.prototype.toString;
Array.isArray = Array.isArray || function(obj) {
return _toString.call(obj) == "[object Array]";
}
@mattydoincode I'm happy to accept that patch as a pull request if it fixes IE8 for you