forked from DebaucheryLibrarian/traxxx
12 lines
277 B
JavaScript
Executable File
12 lines
277 B
JavaScript
Executable File
'use strict';
|
|
|
|
function getRecursiveParameters(entity, parameters) {
|
|
if (entity.parent) {
|
|
return getRecursiveParameters(entity.parent, { ...entity.parameters, ...parameters });
|
|
}
|
|
|
|
return { ...entity.parameters, ...parameters };
|
|
}
|
|
|
|
module.exports = getRecursiveParameters;
|