main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | import _Object$keys from "core-js-pure/features/object/keys.js";
|
---|
2 | import _Object$getOwnPropertySymbols from "core-js-pure/features/object/get-own-property-symbols.js";
|
---|
3 | import _pushInstanceProperty from "core-js-pure/features/instance/push.js";
|
---|
4 | import _filterInstanceProperty from "core-js-pure/features/instance/filter.js";
|
---|
5 | import _Object$getOwnPropertyDescriptor from "core-js-pure/features/object/get-own-property-descriptor.js";
|
---|
6 | import _forEachInstanceProperty from "core-js-pure/features/instance/for-each.js";
|
---|
7 | import defineProperty from "./defineProperty.js";
|
---|
8 | export default function _objectSpread(target) {
|
---|
9 | for (var i = 1; i < arguments.length; i++) {
|
---|
10 | var source = arguments[i] != null ? Object(arguments[i]) : {};
|
---|
11 | var ownKeys = _Object$keys(source);
|
---|
12 | if (typeof _Object$getOwnPropertySymbols === 'function') {
|
---|
13 | var _context;
|
---|
14 | _pushInstanceProperty(ownKeys).apply(ownKeys, _filterInstanceProperty(_context = _Object$getOwnPropertySymbols(source)).call(_context, function (sym) {
|
---|
15 | return _Object$getOwnPropertyDescriptor(source, sym).enumerable;
|
---|
16 | }));
|
---|
17 | }
|
---|
18 | _forEachInstanceProperty(ownKeys).call(ownKeys, function (key) {
|
---|
19 | defineProperty(target, key, source[key]);
|
---|
20 | });
|
---|
21 | }
|
---|
22 | return target;
|
---|
23 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.