hugoWebsite/node_modules/date-fns/esm/_lib/assign/index.js

14 lines
347 B
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
export default function assign(target, object) {
if (target == null) {
throw new TypeError('assign requires that input parameter not be null or undefined');
}
for (var property in object) {
if (Object.prototype.hasOwnProperty.call(object, property)) {
;
target[property] = object[property];
}
}
return target;
}