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.

README.md 947B

123456789101112131415161718192021222324252627282930313233343536
  1. ## just-extend
  2. Part of a [library](../../../../) of zero-dependency npm modules that do just do one thing.
  3. Guilt-free utilities for every occasion.
  4. [Try it now](http://anguscroll.com/just/just-extend)
  5. ```js
  6. import extend from 'just-extend';
  7. var obj = {a: 3, b: 5};
  8. extend(obj, {a: 4, c: 8}); // {a: 4, b: 5, c: 8}
  9. obj; // {a: 4, b: 5, c: 8}
  10. var obj = {a: 3, b: 5};
  11. extend({}, obj, {a: 4, c: 8}); // {a: 4, b: 5, c: 8}
  12. obj; // {a: 3, b: 5}
  13. var arr = [1, 2, 3];
  14. var obj = {a: 3, b: 5};
  15. extend(obj, {c: arr}); // {a: 3, b: 5, c: [1, 2, 3]}
  16. arr.push(4);
  17. obj; // {a: 3, b: 5, c: [1, 2, 3, 4]}
  18. var arr = [1, 2, 3];
  19. var obj = {a: 3, b: 5};
  20. extend(true, obj, {c: arr}); // {a: 3, b: 5, c: [1, 2, 3]}
  21. arr.push(4);
  22. obj; // {a: 3, b: 5, c: [1, 2, 3]}
  23. extend({a: 4, b: 5}); // {a: 4, b: 5}
  24. extend({a: 4, b: 5}, 3); {a: 4, b: 5}
  25. extend({a: 4, b: 5}, true); {a: 4, b: 5}
  26. extend('hello', {a: 4, b: 5}); // throws
  27. extend(3, {a: 4, b: 5}); // throws
  28. ```