mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 20:17:59 +01:00
Restore some cruft that turned out not to be as crufty as it seemed :/
This commit is contained in:
@@ -618,7 +618,9 @@ function isObject(obj) typeof obj === "object" && obj != null || obj instanceof
|
|||||||
* any window, frame, namespace, or execution context, which
|
* any window, frame, namespace, or execution context, which
|
||||||
* is not the case when using (obj instanceof Array).
|
* 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
|
* Returns true if and only if its sole argument is an
|
||||||
|
|||||||
Reference in New Issue
Block a user