jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
18 lines (13 loc) • 382 B
JavaScript
function assign(target, dirtyObject) {
if (target == null) {
throw new TypeError('assign requires that input parameter not be null or undefined');
}
dirtyObject = dirtyObject || {};
for (var property in dirtyObject) {
if (dirtyObject.hasOwnProperty(property)) {
target[property] = dirtyObject[property];
}
}
return target;
}
export default assign;