]> gerrit.simantics Code Review - simantics/district.git/blob - es5-ext/array/is-plain-array.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / es5-ext / array / is-plain-array.js
1 'use strict';
2
3 var isArray = Array.isArray, getPrototypeOf = Object.getPrototypeOf;
4
5 module.exports = function (obj) {
6         var proto;
7         if (!obj || !isArray(obj)) return false;
8         proto = getPrototypeOf(obj);
9         if (!isArray(proto)) return false;
10         return !isArray(getPrototypeOf(proto));
11 };