1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 22:07:58 +01:00

Restore some cruft that turned out not to be as crufty as it seemed :/

This commit is contained in:
Kris Maglione
2014-02-16 22:06:17 -08:00
parent 2cb042c112
commit d9c39262a6

View File

@@ -618,7 +618,9 @@ function isObject(obj) typeof obj === "object" && obj != null || obj instanceof
* any window, frame, namespace, or execution context, which
* is not the case when using (obj instanceof Array).
*/
var { isArray } = Array;
var isArray =
// This is bloody stupid.
function isArray(val) Array.isArray(val) || val && val.constructor && val.constructor.name === "Array";
/**
* Returns true if and only if its sole argument is an