Array.isArray compat
This commit is contained in:
parent
9a34a05555
commit
d87eca7d36
@ -3,3 +3,12 @@ if (typeof(String.prototype.trim) !== "function") {
|
|||||||
return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
|
return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (typeof(Array.isArray) !== "function") {
|
||||||
|
Array.isArray = function (a) {
|
||||||
|
if (a instanceof Array) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user