salix/front/core/lib/assign-props.js

7 lines
176 B
JavaScript
Raw Permalink Normal View History

export default function(srcObject, dstObject, props) {
for (let prop of props)
if (srcObject[prop] !== undefined)
dstObject[prop] = srcObject[prop];
}