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.

ensureObject.js 436B

12345678910111213141516171819202122
  1. "use strict";
  2. exports.__esModule = true;
  3. exports["default"] = ensureObject;
  4. function ensureObject(obj) {
  5. for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  6. props[_key - 1] = arguments[_key];
  7. }
  8. while (props.length > 0) {
  9. var prop = props.shift();
  10. if (!obj[prop]) {
  11. obj[prop] = {};
  12. }
  13. obj = obj[prop];
  14. }
  15. }
  16. module.exports = exports.default;