vike
Version:
The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.
8 lines (7 loc) • 312 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.objectAssignSafe = objectAssignSafe;
// Same as `Object.assign(obj, objNewVals)` but ensure that `objNewVals` properties already exist on `obj`
function objectAssignSafe(obj, objNewVals) {
Object.assign(obj, objNewVals);
}