]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/object/is-plain-object.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / node_modules / es5-ext / object / is-plain-object.js
1 'use strict';
2
3 var getPrototypeOf = Object.getPrototypeOf, prototype = Object.prototype
4   , toString = prototype.toString
5
6   , id = Object().toString();
7
8 module.exports = function (value) {
9         var proto, constructor;
10         if (!value || (typeof value !== 'object') || (toString.call(value) !== id)) {
11                 return false;
12         }
13         proto = getPrototypeOf(value);
14         if (proto === null) {
15                 constructor = value.constructor;
16                 if (typeof constructor !== 'function') return true;
17                 return (constructor.prototype !== value);
18         }
19         return (proto === prototype) || (getPrototypeOf(proto) === null);
20 };