5 lines
No EOL
154 B
JavaScript
5 lines
No EOL
154 B
JavaScript
export function getAttributeValueByPath(record, path) {
|
|
return path.reduce(function (current, key) {
|
|
return current && current[key];
|
|
}, record);
|
|
} |