@opentiny/vue-renderless
Version:
An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
23 lines (22 loc) • 666 B
JavaScript
import "../../../chunk-G2ADBYYC.js";
import keys from "./keys";
import slice from "../array/slice";
import assign from "../object/assign";
import includes from "../array/includes";
import arrayEach from "../array/arrayEach";
const destructuring = function(destination, sources) {
if (destination && sources) {
let rest = assign.apply(this, [{}].concat(slice(arguments, 1)));
let restKeys = keys(rest);
arrayEach(keys(destination), (key) => {
if (includes(restKeys, key)) {
destination[key] = rest[key];
}
});
}
return destination;
};
var destructuring_default = destructuring;
export {
destructuring_default as default
};