3f03ff9667
add Base class add set and get properties utils
9 lines
289 B
JavaScript
9 lines
289 B
JavaScript
export function setProperties(sourceObject, object) {
|
|
sourceObject.properties = Object.assign(sourceObject.properties, object);
|
|
return sourceObject;
|
|
}
|
|
|
|
|
|
export function getProperties(sourceObject, object) {
|
|
return object ? sourceObject.properties[object] : sourceObject.properties;
|
|
} |