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.

inherits.js 695B

12345678910111213141516171819202122232425262728293031
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = inherits;
  6. var _constants = require("../constants");
  7. var _inheritsComments = require("../comments/inheritsComments");
  8. function inherits(child, parent) {
  9. if (!child || !parent) return child;
  10. for (const key of _constants.INHERIT_KEYS.optional) {
  11. if (child[key] == null) {
  12. child[key] = parent[key];
  13. }
  14. }
  15. for (const key of Object.keys(parent)) {
  16. if (key[0] === "_" && key !== "__clone") child[key] = parent[key];
  17. }
  18. for (const key of _constants.INHERIT_KEYS.force) {
  19. child[key] = parent[key];
  20. }
  21. (0, _inheritsComments.default)(child, parent);
  22. return child;
  23. }