source: imaps-frontend/node_modules/@babel/runtime/helpers/objectSpread2.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 919 bytes
Line 
1var defineProperty = require("./defineProperty.js");
2function ownKeys(e, r) {
3 var t = Object.keys(e);
4 if (Object.getOwnPropertySymbols) {
5 var o = Object.getOwnPropertySymbols(e);
6 r && (o = o.filter(function (r) {
7 return Object.getOwnPropertyDescriptor(e, r).enumerable;
8 })), t.push.apply(t, o);
9 }
10 return t;
11}
12function _objectSpread2(e) {
13 for (var r = 1; r < arguments.length; r++) {
14 var t = null != arguments[r] ? arguments[r] : {};
15 r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
16 defineProperty(e, r, t[r]);
17 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
18 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
19 });
20 }
21 return e;
22}
23module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
Note: See TracBrowser for help on using the repository browser.