chunk-RNWUNH7L.js 467 B

12345678910111213141516171819202122232425
  1. // node_modules/vue-demi/lib/index.mjs
  2. var isVue2 = false;
  3. function set(target, key, val) {
  4. if (Array.isArray(target)) {
  5. target.length = Math.max(target.length, key);
  6. target.splice(key, 1, val);
  7. return val;
  8. }
  9. target[key] = val;
  10. return val;
  11. }
  12. function del(target, key) {
  13. if (Array.isArray(target)) {
  14. target.splice(key, 1);
  15. return;
  16. }
  17. delete target[key];
  18. }
  19. export {
  20. isVue2,
  21. set,
  22. del
  23. };
  24. //# sourceMappingURL=chunk-RNWUNH7L.js.map