objects.js 702 B

12345678910111213141516171819202122232425262728
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var lodashUnified = require('lodash-unified');
  4. var shared = require('@vue/shared');
  5. const keysOf = (arr) => Object.keys(arr);
  6. const entriesOf = (arr) => Object.entries(arr);
  7. const getProp = (obj, path, defaultValue) => {
  8. return {
  9. get value() {
  10. return lodashUnified.get(obj, path, defaultValue);
  11. },
  12. set value(val) {
  13. lodashUnified.set(obj, path, val);
  14. }
  15. };
  16. };
  17. Object.defineProperty(exports, 'hasOwn', {
  18. enumerable: true,
  19. get: function () { return shared.hasOwn; }
  20. });
  21. exports.entriesOf = entriesOf;
  22. exports.getProp = getProp;
  23. exports.keysOf = keysOf;
  24. //# sourceMappingURL=objects.js.map