Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

object-get-prototype-of.js 770B

123456789101112131415161718
  1. var has = require('../internals/has');
  2. var toObject = require('../internals/to-object');
  3. var sharedKey = require('../internals/shared-key');
  4. var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');
  5. var IE_PROTO = sharedKey('IE_PROTO');
  6. var ObjectPrototype = Object.prototype;
  7. // `Object.getPrototypeOf` method
  8. // https://tc39.es/ecma262/#sec-object.getprototypeof
  9. // eslint-disable-next-line es/no-object-getprototypeof -- safe
  10. module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
  11. O = toObject(O);
  12. if (has(O, IE_PROTO)) return O[IE_PROTO];
  13. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  14. return O.constructor.prototype;
  15. } return O instanceof Object ? ObjectPrototype : null;
  16. };