2023-04-04 06:05:47 +03:00
|
|
|
import { _define_property } from "./_define_property.js";
|
|
|
|
|
|
|
|
export function _object_spread(target) {
|
2023-03-31 09:15:21 +03:00
|
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
|
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
|
|
var ownKeys = Object.keys(source);
|
2023-04-04 06:05:47 +03:00
|
|
|
|
2023-03-31 09:15:21 +03:00
|
|
|
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
|
|
ownKeys = ownKeys.concat(
|
|
|
|
Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
|
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
|
|
})
|
|
|
|
);
|
|
|
|
}
|
2023-04-04 06:05:47 +03:00
|
|
|
|
2023-03-31 09:15:21 +03:00
|
|
|
ownKeys.forEach(function(key) {
|
|
|
|
_define_property(target, key, source[key]);
|
|
|
|
});
|
2021-12-05 09:46:09 +03:00
|
|
|
}
|
2023-04-04 06:05:47 +03:00
|
|
|
|
2023-03-31 09:15:21 +03:00
|
|
|
return target;
|
|
|
|
}
|
2023-04-04 06:05:47 +03:00
|
|
|
export { _object_spread as _ };
|