Files
Basalt2/node_modules/@algolia/autocomplete-shared/dist/esm/getAttributeValueByPath.js
Robert Jelic b0a4a6da9c Vitepress
2025-02-10 06:53:23 +01:00

5 lines
154 B
JavaScript

export function getAttributeValueByPath(record, path) {
return path.reduce(function (current, key) {
return current && current[key];
}, record);
}