mirror of
https://github.com/mivodev/mivodev.github.io.git
synced 2026-01-26 13:32:07 +07:00
5 lines
154 B
JavaScript
5 lines
154 B
JavaScript
export function getAttributeValueByPath(record, path) {
|
|
return path.reduce(function (current, key) {
|
|
return current && current[key];
|
|
}, record);
|
|
} |