UNPKG

989 BJavaScriptView Raw
1var _Object$keys = require("core-js/library/fn/object/keys.js");
2var _Object$getOwnPropertySymbols = require("core-js/library/fn/object/get-own-property-symbols.js");
3var _Object$getOwnPropertyDescriptor = require("core-js/library/fn/object/get-own-property-descriptor.js");
4var defineProperty = require("./defineProperty.js");
5function _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}
20module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
\No newline at end of file