mirror of
https://github.com/tiennm99/FBcount.git
synced 2026-05-21 22:24:35 +00:00
Init
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
var isArray = Array.isArray, getPrototypeOf = Object.getPrototypeOf;
|
||||
|
||||
module.exports = function (obj) {
|
||||
var proto;
|
||||
if (!obj || !isArray(obj)) return false;
|
||||
proto = getPrototypeOf(obj);
|
||||
if (!isArray(proto)) return false;
|
||||
return !isArray(getPrototypeOf(proto));
|
||||
};
|
||||
Reference in New Issue
Block a user