1 | var _Object$keys = require("core-js/library/fn/object/keys.js");
|
2 | var _Object$getOwnPropertySymbols = require("core-js/library/fn/object/get-own-property-symbols.js");
|
3 | var _Object$getOwnPropertyDescriptor = require("core-js/library/fn/object/get-own-property-descriptor.js");
|
4 | var defineProperty = require("./defineProperty.js");
|
5 | function _objectSpread(target) {
|
6 | for (var i = 1; i < arguments.length; i++) {
|
7 | var source = arguments[i] != null ? Object(arguments[i]) : {};
|
8 | var ownKeys = _Object$keys(source);
|
9 | if (typeof _Object$getOwnPropertySymbols === 'function') {
|
10 | ownKeys.push.apply(ownKeys, _Object$getOwnPropertySymbols(source).filter(function (sym) {
|
11 | return _Object$getOwnPropertyDescriptor(source, sym).enumerable;
|
12 | }));
|
13 | }
|
14 | ownKeys.forEach(function (key) {
|
15 | defineProperty(target, key, source[key]);
|
16 | });
|
17 | }
|
18 | return target;
|
19 | }
|
20 | module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; |
\ | No newline at end of file |