Files
Basalt2/node_modules/@algolia/autocomplete-shared/dist/esm/getAttributeValueByPath.js
Robert Jelic 31787b0e9b Fix
2025-02-16 18:04:24 +01:00

5 lines
154 B
JavaScript

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