UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

12 lines (9 loc) 283 B
'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)); };